Python face question basic part 80 questions

Source: Internet
Author: User
Tags garbage collection

1 Why learn python?
2 What is the way to learn python?
3 How does Python compare to other languages like Java, PHP, C, C #, C + +, and more?
4 description of explanatory and compiled programming languages?
5 Python interpreter types and features?
6-bit and byte relationships?
7 B, B, KB, MB, GB relationship?
8 Please list at least 5 PEP8 specifications (the more the better).
9 The following transformations are implemented by code:

10 Write a function implementation to convert the IP address to an integer:


The maximum number of layers of python recursion?
12 Finding the result:


What is the difference between ASCII, Unicode, Utf-8, GBK?
What is the difference between a 14-byte code and a machine code?
153-dollar arithmetic rules and application scenarios?
16 enumerating the differences between Python2 and Python3?
17 use a single line of code for numeric exchange:
What is the difference between int and long in Python3 and Python2?
What is the difference between xrange and range?
20 file operation: What is the difference between Xreadlines 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?
The lambda expression format and the application scenario?
What is the effect of the pass?
Effects of *arg and **kwarg
The difference between IS and = =
27 brief description of Python's deep copy and application scenario?
The Python garbage collection mechanism?
Variable types and immutable types of python?
30 Finding the result:


31 Finding the result:


32 list common built-in functions?
What is the role of filter, map, and reduce?
341 Line Code Implementation 9*9 multiplication table
35 How do I install a third-party module? And what third-party modules have been used?
36 List of at least 8 commonly used modules have those?
What is the difference between the match and search for Panax Notoginseng re?
38 What is a regular greedy match?
39 Finding the result:

a.[I% 2 for I in range]b. (i% 2 for I in range (10))

40 Results: A. 1 or 2 B. 1 and 2 C. 1 < (2==2) d. 1 < 2 = 2
def func (a,b=[]) What kind of a hole is there in this notation?
42 How to achieve "1", "2", ' 3 '?
43 How does [' 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?
461 lines of code implement a duplicate value in the delete 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 implement the stack with the code simple.
50 What kinds of commonly used strings are formatted?
51 Brief description of the generator, iterator, iteration object, and application scenario?
52 uses 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 inheritance in object-oriented python? What is
59 object-oriented depth first and breadth first?
60 is the role of super in object-oriented?
61 Have you ever used a function in Functools? What is its role?
62 enumerates the special methods of the object-oriented, such as: __new__, __init__
63 How to determine a function or a method?
64 static methods and class methods differ?
65 enumerates the special members in object-oriented and the scenario.
66 1, 2, 3, 4, 5 can be composed of how many different and no duplicates of three digits.
67 What is reflection? and application scenarios?
Metaclass effect? and application scenarios?
69 implements the singleton mode in as many ways as possible. The wording of the
70 adorner and the application scenario.
71 exception handling and how to proactively run out of exceptions (scenarios).
72 What is an object-oriented MRO.
Isinstance role and application scenario?
74 Write code and implement:


What are the types of data that can be processed when JSON is serialized? How do I customize support for datetime types?
When JSON is serialized, the default is that Chinese will be 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 briefly describes the yield and yield from keyword.

Python face question basic part 80 questions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.