Python笔记
2019年11月12日电脑上下载的资料进行学习
一、Input的用法,永远等待,直到用户输入了值,就会将输入的值给他的东西(#变量,)
#变量,只能由
字母
数字
下划线
特例:不能用数字开头
最好不要和python内置的东西重复
python 关键字不能用做变量
Python中的关键字:
and 、 del 、 from 、not 、while、 as、 elif 、global 、or 、with、 assert、 else、 if、 pass、 yield、 break、 except、 import、、 print、 class、 exec、 in、 raise、 continue、 finally、 is、 return、 def、 for、 lambda、 try。
变量名尽量以写照方式;