Python Learning: Variable __python

Source: Internet
Author: User

Python is the first language I've learned that does not require modifiers to modify a variable, declare a variable by simply writing a variable name and assigning a value to it, for example:

#变量名只能是由字母, numbers and underscores, and cannot begin with a number
#Python只需要这样就可以声明一个变量了, so Python has no strictly constant
name = "Zoneday"
#如果要声明一个常量, You can capitalize all the variable names, which is a conventional way to tell others that this is a constant and not to be modified. (Although must modify also can modify ~ ~)
NAME = "Zoneday"

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.