Python novice notes

learning target:

初步接触,慢慢学习,欢迎交流


Learning Content:

  1. Build a python development environment
  2. Master the basic syntax of python
  3. Master conditional statements
  4. Master loop statements

Record:

Formatted output:

 escape character:

 

 If you want to output multiple variables, you need to apply formatting, and the escape character is also a character that needs to be added when outputting.

operator:


 // is rounding, % is modulo

 There are only two types of Boolean numbers: True or False

 if statement:

 code block:

 

 wrong indentation

There is no mistake in adding the colon (if you use if and else, pay attention to adding after else:) 

When assigning variables, a, b, c=1, 2, 3 can not be a=1, b=2, c=3.

To be continued. . .

Guess you like

Origin blog.csdn.net/weixin_51087313/article/details/131597681