Computer secondary exam (Python) _ synchronous assignment, reference

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

Intelligent Recommendation

7. National Computer Secondary Python Exam - Simple Application (II)

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...

6. National Computer Secondary Python Exam - Simple Application Top (1)

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...

More Recommendation

National Computer Rating Secondary Python Exam Prosperity Prediction and Analysis

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, ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top