1. Why learn Python?
2. What is the way to learn Python?
3. Python vs. Java,PHP,c, C#, c+ + , and other languages?
4. Describe the explanatory and compiled programming languages?
5. What are the Python interpreter types and features?
6. What is the relationship between bits and bytes?
7. B,b,KB,MB,GB relationship?
8. Please list at least 5 PEP8 Specifications (the more the better).
9. The following conversions are implemented through the code:
Binary conversion to decimal: v = "0b1111011"?
decimal Conversion to binary: v =?
octal into decimal: v = "011"?
decimal into octal: v =?
convert 16 binary to decimal: v = "0x12"?
Decimal converted to 16 binary: v = 87
10. Write a function implementation to convert the IP address to an integer.
If the 10.3.9.12 conversion rule is:
10 00001010
? 3 00000011?
9 00001001
? 00001100?
Then the above binary stitching together to calculate the decimal result: 00001010 00000011 00001001 00001100 =?
What is the maximum number of layers for python recursion?
12. Finding the result:
v1 = 1 or 3?
v2 = 1 and 3?
V3 = 0 and 2 and 1
? v4 = 0 and 2 or 1
? v5 = 0 and 2 or 1 or 4
? v6 = 0 or flase and 1
What is the difference between ASCII,Unicode,utf-8,gbk ?
14. What is the difference between bytecode and machine code?
15. Ternary operation rules and application scenarios?
16. List the differences between Python2 and Python3 ?
17. Use a single line of code for numeric exchange:
? A = 1
? B = 2
What is the difference between int and long in Python3 and Python2 ?
What is the difference between xrange and range ?
20. File operation: The difference betweenxreadlines and readlines ?
21. Enumerate the common values for which the Boolean value is False ?
22. String, list, tuple, dictionary each of the 5 commonly used methods?
What is the lambda expression format and the application scenario?
What is the role of the pass?
*arg and **kwarg effects
The difference between IS and = =
27. Describe Python 's deep copy and application scenarios?
What is the Python garbage collection mechanism?
What are the mutable types and immutable types of python?
30. Finding the result:
? v = dict.fromkeys ([' K1 ', ' K2 '],[])?
v[' K1 '].append (666)
? Print (v)?
v[' k1 '] = 777
? Print (v)
31. Finding the result:
def num ():
return [lambda x:i*x for i in range (4)]
Print ([M (2) for M in Num ()])
32. List common built-in functions?
What is the role of filter,map,reduce ?
34. One line of code implements 9*9 multiplication table
35. How do I install a third-party module? And what third-party modules have been used?
36. What are some of the 8 common modules that are listed at least?
What is the difference between the match and search for the Panax Notoginseng re?
38. What is a regular greedy match?
Result:? A. [I% 2 for I in range]? b. (i% 2 for I in range )
The result:? A. 1 or 2? B. 1 and 2? C. 1 < (2==2)? d. 1 < 2 = = 2
a,b=[def func What is the hole in this notation?
42. How to Implement " [ '
43. How do I achieve ['1','2','3'] become [All-in-all ]?
44. Comparison: a = [2] and b = [(1), (), (3)] and b = [(1,), (2,), (3,)] the difference?
45. How do I generate [1,4,9,16,25,36,49,64,81,100] in one line of code?
46. A line of code to remove duplicate values from the list ?
47. How do I set a global variable in a function?
What is the function of the logging module? and application scenarios?
49. Please use the code simple to implement the stack .
50. What kinds of string formats are used?
51. Briefly describe the generator, iterator, iteration object, and application scenario?
52. Use Python to implement a binary lookup function.
53. Talk about your understanding of closures?
What is the role of the OS and sys modules?
55. How do I generate a random number?
56. How do I delete a file using python ?
57. What is your understanding of the opposite to the object?
What are the characteristics of the inheritance in the object-oriented python?
59. What is object-oriented depth first and breadth first?
60. What is the role of Super in object-oriented?
61. Have you used a function in functools ? What is its role?
62. List the special methods of the object-oriented with the cool underline, such as:__new__,__init__
63. How can I tell if it is a function or a method?
64. What is the difference between a static method and a class method?
65. Enumerate the special members in object-oriented and the application scenario
66.1,2,3,4,5 can be composed of how many different and non-duplicated three-digit
67. What is reflection? and application scenarios?
Metaclass role? and application scenarios?
69. Use as many methods as possible to implement the singleton mode.
70. How to use the decorator and the application scenario.
71. How to handle exception handling and how to proactively run out of exception (application scenario)
72. What is object-oriented MRO
Isinstance role and application scenario?
74. Write the code and implement:
Given an array of integers, return indices of the both numbers such that they add-to a specific target. Assume that each input would
There are exactly one solution, and you could not use the same element twice.
Example:?
Given nums = [2, 7, one, +], target = 9,
? Because Nums[0] + nums[1] = 2 + 7 = 9,?
return [0, 1]
What are the types of data that can be processed when JSON is serialized? How do I customize support for datetime types?
When JSON serialization, the default is that Chinese is converted to Unicode, what if I want to keep Chinese?
77. What is an assertion? Application scenarios?
78. Have you ever worked with statement ? What are the benefits of it?
79. Use the code implementation to view all the files in the enumeration directory.
80. Describe the yield and yield from keyword.
The old boy education Python full stack Development course, after settling, put an end to paper, the whole enterprise real case combined with theoretical teaching, want to learn more about the Python development course friends, can pay attention to the old boy education.
Basics of the classic Python face question 80 Q python Development