Learn python3 in one picture. 离线版思维导图 示例 字典 1 2 3 4 5 ls = {s: len(s) for s in ["Python", "Javascript", "Golang"]} print(ls) sl = {v: k for k, v in ls.items()} print(sl) 装饰符 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 def log(f): def wrapper(): print("Hey log~")