The rest of the weekend, but also do not forget progress. In the study of Python. Send Bo to consolidate their own

Source: Internet
Author: User

1. As for Python, I don't know much about choosing this language as a second language to learn. It's also a coincidence, no brain impulse bought a python programming (from getting started to practicing)

PS: The author of the book is very hanging Oh, is a 5-year-old began to learn programming American uncle.

2. About Python i downloaded it on the official website (http://python.org/downloads/), version 3.6.

Installing a successful dog is simple enough to verify that the installation was successful. Enter Python in Cmd to see the version number you installed. If any, the installation is successful.

3. About the IDE's selection. A language must have an efficient IDE if you learn it. Geany is recommended in the book. It's all right with the feeling. No lag in the sense of resource consumption is not high

4. First, start by outputting a hello,world!

Print ("hello,world! ")   #注意这里后面结束不需要分号;   And Python notes using the pound key  #  instead of//(and Java compared to the more humane, or not used to haha)

5. As for Python variables, the role of variables in language should be known to all. Various operations are inseparable from the operation of variables (objects), after all, an object-oriented language

result="eric! "         #这里就声明了一个变量result, the value is eric!.  There is no need to declare the type of the variable. Python will automatically make judgments. belongs to the weak type language, the name rule of course Hump international general, language Universal. 

6. The declaration of the string can be in single quotation marks "" can also be used in double quotes "" and HTML language rules are similar, no difference

result="add message Queen Empress!"  "        #这里用了一个方法title (). Very image of a method. will display the initials in English, while Chinese will not change print(Result.title ())
Print (Result.upper ()) #upper () will display all caps in English
Print (Result.lower ()) #lower () all lowercase displays. Here, the function of the method in the name of the embodiment of the dripping, so that our beginner's partners can probably guess the function

The rest of the weekend, but also do not forget progress. In the study of Python. Send Bo to consolidate their own

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.