Note1
- 进入python用win+r搜cmd输python
- python一般用print而不用printf
- 离开环境(1)用exit()(2)ctrl+z一般用于代码死循环来中断
- 单行注释用#,多行注释用’’’ 注释 ‘’’
- print(“我的名字是%s,我的国籍是%s”%(“小紫”,”中国”)) 如果前面有多个占位,后面可以拿一个百分号加括号,再将真实内容填入
English version
- If i want to enter python environment,i should use “win+r” on the keyboard,input “cmd”,then input “python” in these page.
- We always use “print” rather than “printf” in the python environment.
- When we want to go out from this environment ,we have two tips to make it.One of it is input “exit”,the other is use “ctrl+z”.
- When we need Single-line comment code,we should use “#” to express.
When we need Multiple lines of comment code,we should use “ ’’’
annotation to express.
’’’ ”
5.If the code of “print” has multiple placeholder,the second half of the code need to use “%()” to express.