摘要:
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 结束循环 阅读全文
摘要:
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... 阅读全文
摘要:
俗话说的好,掌握一门语言要从掌握 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... 阅读全文