程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

110 Python interview questions for second kill interviewers (Part 1)

編輯:Python

1、 One line of code 1--100 The sum of the

utilize sum() Summation of functions

​2、 How to modify global variables inside a function

utilize global Modify global variables

​3、 List 5 individual python Standard library

os: Provides a number of functions associated with the operating system

sys: Usually used for command line arguments

re: Regular matching

math: Mathematical operations

datetime: Processing date time

4、 Dictionary how to delete key and merge two dictionaries

del and update Method

​5、 go on talking python Of GIL

GIL yes python The global interpreter lock , If there are multiple threads running in the same process , A thread is running python When it comes to programming, it takes over python Interpreter ( Add a lock, that is GIL), Make other threads in the process unable to run , After the thread has finished running, other threads can run . If a thread runs into time-consuming operations , The interpreter lock is released , Make other threads run . So in multithreading , Threads still run in sequence , Not at the same time .

Multi process, because each process can be allocated resources by the system , It means that each process has a python Interpreter , So multiple processes can run at the same time , The disadvantage is that the process system costs a lot of resources

6、python How to realize list de duplication

Let's go through the set first , In transit list

​7、fun(*args,**kwargs) Medium *args,**kwargs What do you mean ?

8、python2 and python3 Of range(100) The difference between

python2 Returns a list of ,python3 Return iterator , To save memory

9、 In a word, explain what kind of language can be used with decorators ?

A language in which functions can be passed as arguments , You can use decorators

10、python What are the built-in data types

integer --int

Boolean type --bool

character string --str

list --list

Tuples --tuple

Dictionaries --dict


Introduction to big data development
database MySQL:2022 Dark horse programmer latest MySQL Knowledge elaboration +mysql Practical cases _ Zero basis mysql A complete set of tutorials from getting started to advanced database
Big data core foundation Hadoop:2022 The latest dark horse programmer big data Hadoop Getting started video tutorial , The most suitable big data for zero foundation self-study Hadoop course
Hive Digital warehouse technology : Dark horse programmer big data project practical tutorial _ Big data enterprise offline data warehouse , Online education project practice (Hive Complete process of data warehouse project )
spark3.2 course : Black horse programmer Spark A full video tutorial ,4 God spark3.2 Quick start to mastery , The first set in the whole network is based on Python Linguistic spark course
Complete self-study roadmap :2022Python+ Big data learning roadmap

2022 Popular course of artificial intelligence development in
Python data mining : Black horse programmer Python course ,4 Get started Python data mining , Elaborate on the system + Practical cases
3 Day play machine learning : Black horse programmer 3 Get started python machine learning
NLP Natural language processing technology :Python Artificial intelligence 20 Play for an hour NLP natural language processing 【 Black horse programmer 】
AI-OpenCV The image processing : Dark horse programmer AI tutorial _10 Learn image processing when you are young OpenCV Introductory tutorial


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved