各种关键知识点

1.dict.get()

dict.get('xxx', 'xx1') # 无则返回指定的‘xx1’

dict.get('xxx') # 无则返回None

2.resplit()

str.resplit('xxx', x) # x代表分割次数

3.

sys._getframe().f_code.co_filename

4.

__import__

5.

pip freeze > requirment.txt

猜你喜欢

转载自www.cnblogs.com/yijue-lu/p/11025352.html
今日推荐