Python Learning notes section eighth (related jobs for functions)

Source: Internet
Author: User

View comments inside a function

Import a module to add an adorner, let the user call the function when the view comment is the function itself rather than the adorner

Call the source code feature with adorner added

Change the comment information for a function

Job fourth, login once back function no need to log in repeatedly

Inside a function, you can change the list of global variables, the elements of a dictionary, but not the amount, because lists and dictionaries are mutable types, and assignments are not mutable types.

Sixth, cache the contents of the Get Web page

Iterators

Remember that we used the concept of function objects to make a function dictionary operation, to come, we have a larger approach, the file at the beginning of the declaration of an empty dictionary, and then in front of each function with an adorner, complete the automatic addition to the dictionary operation

Python Learning notes section eighth (related jobs for functions)

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.