4.4 Daily practice

About running a Python program performance, what tools can improve performance?
1, for the performance of a large part of the code may be written in C or C ++ 
2, the performance impact caused by obstruction IO, IO can be used to address a multiplexer 
3, to make use of the built-in function python 
4, to make use of local variable

python unsupported data types 
A. char 
B. int 
C. a float 
D. List 
A

Option is selected for the correct expression of the expression 
A. {. 1: 0,2: 0,3: 0} 
B. { '. 1': 0, '2': 0, '. 3': 0} 
C. {(. 1 , 2): 0, (4,3-): 0} 
D. {[1,2]: 0, [4,3-]: 0} 
E. {{1,2}: 0, 4,3- {}: 0}
ABC correct 
A: {. 1: 0, 2: 0,. 3: 0} 
B: { '. 1': 0, '2': 0, '. 3': 0} 
C: {(. 1, 2): 0, (4, 3): 0}

Guess you like

Origin www.cnblogs.com/ljy123/p/12635218.html