摘要: 一、运算符补充 1、in 2、not in while True: c = input('请输入:') if 'sb' in c: print('包含敏感字符') else: print(c) break 二、优先级 三、pycharm中py文件加抬头 四、规范代码 五、整型 1、py2 int,超 阅读全文
posted @ 2019-11-21 18:23 沉淀xy 阅读(112) 评论(0) 推荐(0)
摘要: 一、循环 # 1、循环"""while True: print('人生苦短,我用PYTHON。')"""#2、while 后加条件"""while 1>0 and 2>1: print('人生苦短,我用PYTHON。')"""#3、输出1-10不包含7a=1 while a<=10: if a!=7 阅读全文
posted @ 2019-11-21 15:42 沉淀xy 阅读(126) 评论(0) 推荐(0)
摘要: 一、python安装 py/py3:官网下载,主要注意环境变量的配置(环境变量之间用;隔开)。 二、pycharm的安装 参照:https://www.cnblogs.com/ailab/p/11703865.html 三、字符类型 1、字符串:str 2、整型:int 3、布尔值:bool 四、输 阅读全文
posted @ 2019-11-21 15:18 沉淀xy 阅读(143) 评论(0) 推荐(0)