摘要:
a = {"a":1, "b":2, "c":3, "d":4} 第一种:遍历key的值 for key in a : print (key+ ':' +a[key]) a:1 b:2 c:3 d:4 第二种:遍历key的值 for key in a.keys(): print(key + ":" 阅读全文
摘要:
def restart_program(): """Restarts the current program. Note: this function does not return. Any cleanup action (like saving data) must be done before 阅读全文