摘要:
1 dict1 = {'a': 1, 'b': 2, 'c': 3} 2 dict1.update({'d': 4, 'e': 5, 'c': 100}) 3 dict1.update({'c': 100}) #不会删除,只会增加或修改 4 print(dict1) 1 dict2 = {} 2 d 阅读全文
posted @ 2020-06-22 11:10
Fmaj-7
阅读(229)
评论(0)
推荐(0)
摘要:
1 @lru_cache.lru_cache(maxsize=None) 2 def get_commands(): 3 """ 4 Returns a dictionary mapping command names to their callback applications. 5 6 This 阅读全文
posted @ 2020-06-22 10:53
Fmaj-7
阅读(225)
评论(0)
推荐(0)
摘要:
1 def find_commands(management_dir): 2 """ 3 Given a path to a management directory, returns a list of all the command 4 names that are available. 5 6 阅读全文
posted @ 2020-06-22 09:53
Fmaj-7
阅读(253)
评论(0)
推荐(0)
浙公网安备 33010602011771号