摘要: 1 # -*- coding:utf-8 -*- 2 # Author:Monarch-T 3 4 for 循环 5 for i in range(10): 6 print("Loop:", i) 7 8 for i in range(0, 10, 2): #步长2 9 continue 跳出本次循环进入下次循环 10 break 结束循环 阅读全文
posted @ 2019-01-09 17:25 T大帅 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 # Author:Monarch-T 3 import getpass 4 #密文 模块在pycharm中不好使 5 ''' 6 username = input("username:") 7 userpasswd = getpass.getpass("passwd:") 8 print(username, userpass... 阅读全文
posted @ 2019-01-09 17:24 T大帅 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 俗话说的好,掌握一门语言要从掌握 print("hello world")开始 1 print("hello world") 2 #变量 3 name = "GTT" 4 name1 = name 5 print("My name is ", name, name1) 6 name = "WZ" 7 print("My name is ", name, name1) 8 msg... 阅读全文
posted @ 2019-01-09 17:23 T大帅 阅读(161) 评论(0) 推荐(0) 编辑