摘要:
循环打印1~5 i = 1 while i <= 5: print(i) i += 1 输出 1 2 3 4 5 View Code 循环执行判断用户输入,若输入quit就退出循环 prompt = "Please enter 'quit' to logoff program: " message 阅读全文
摘要:
列表中嵌套字典 employee_1 = {'name': 'david', 'dept': 'ops', 'post': 'NOC', 'salary': 12000, 'id': 113} employee_2 = {'name': 'brain', 'dept': 'auto', 'post' 阅读全文