Python learning Day 1

Source: Internet
Author: User
Dry ProgramIt is hard to update your knowledge at any time. Stuffy ~~ In order to allow yourself to learn more about gun and Linux. After a brief understanding of shell, I decided to learn python.
-------------------------------
Today, I have briefly understood the history of Python. Directly learn strings first.
Python strings are better understood than PHP Strings, because there is no difference between single quotes and double quotes. And the delimiters do not need to use <EOT... EOT; in PHP, as long as three quotation marks are OK.

What is special is the natural string (R) and Unicode (u) strings, which seem to be close to the string processing in C.

However, this concept is still vague.Literally connected strings".

The variable does not have a $ symbol similar to PhP.

I may have to get used to everything. At least the operators are also objects that I can adapt.

Python feels that the most special is the logical and physical rows. A semicolon is a logical line, and a carriage return is a physical line. We recommend that you use physical rows instead of semicolons. I don't know what it means. I am used to having a semicolon behind each line. I don't know how many "key mistakes" I will make ".

It is a good way to use indentation to represent the statement group. Force indentation in the syntax, so it is unfortunate that writing programs are used to bad habits.
--------------------------------
The overall impression of python is like that of Qilin. We can see the traces of several languages. It feels good!

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.