10 2018 档案

摘要:1,list li = ['alex','wusir','egon','女神','taibai'] #增加 append insert,extend是迭代(即分拆)加入 # li.append('日天') li.insert(4,'春哥') # 在索引位4前插入 # li.extend('二哥') 阅读全文
posted @ 2018-10-22 16:39 烟云过眼 阅读(118) 评论(0) 推荐(0) 编辑
摘要:pycharm,ctl+D 复制当前行;ctl+/ 注释或取消注释选定的行 1,格式化输出 msg = "我叫%s,今年%s 身高 %s" %(name,age,height) %s 是字符,%d 是数字。 %% 用于输出% 2, while 条件: else: print("循环正常执行完啦") 阅读全文
posted @ 2018-10-18 17:44 烟云过眼 阅读(110) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示