tags: Computer secondary exam (Python) python Experience sharing
1, synchronous assignment
Synchronous assignment refers to all expressions on the right side of the same operation equal sign, and assigns a variable corresponding to the left side of the corresponding equal sign.
like:
>>>n = 3
>>>x, y = n+1, n+2
>>>x
4
>>>y
5
Another application of synchronization assignment is the value of interchange variables. like
>>>x, y = y, x
>>>x
5
>>>y
4
2, reference
Refers to the existing function code other than the program. Reserved Use of Import:
IMPORT <Ribbon Name>
After reference, use the <Range Name>. <Function name> (parameter) mode calls the specific function
important: Code is displayed in a picture form,Red box for the exam code in the examIt is also the code we need to add, and the rest of the code exam will be given, we need to fill in the remaining ar...
important: Code is displayed in a picture form,Red box for the exam code in the examIt is also the code we need to add, and the rest of the code exam will be given, we need to fill in the remaining ar...
Although it has been determined in September 2018 to join "Secondary Python" in the National Computer Rank Examination, it has not yet been introduced in the full and detailed exam outline, ...