Python随笔日记(1)

2019年9月28日

1.安装python 。之后在Windows中配置环境变量(计算机\属性\高级系统设置\环境变量\系统变量\path后加入 :路径)

2.注意变量的命名的规则

字母、数字、下划线

ps:数字不能开头、不能是关键字、最好不要和Python内置的东西重复

3.条件语句  

  1. 基本语句 if
  2. 镶嵌
  3. if    elif=else+if     else

4.while循环

    

while  条件:
    ....
print('...')
补充:a.while  else  b.continue技术循环   c.pass跳过

5.

猜你喜欢

转载自www.cnblogs.com/xiaodaosaiki/p/11328300.html
今日推荐