摘要:
def log_path(): import offlinerl log_path = os.path.abspath(os.path.join(offlinerl.__file__,"../../","offlinerl_tmp")) create_dir(log_path) return log 阅读全文
posted @ 2022-04-23 18:01
呦呦南山
阅读(26)
评论(0)
推荐(0)
摘要:
from collections import OrderedDictdel_attr = ["function", "module"]def parse_config(cfg_module): args = [ i for i in dir(cfg_module) if not i.startsw 阅读全文
posted @ 2022-04-23 16:54
呦呦南山
阅读(26)
评论(0)
推荐(0)
摘要:
Description Python string method startswith() checks whether string starts with str, optionally restricting the matching with the given indices start 阅读全文
posted @ 2022-04-23 16:43
呦呦南山
阅读(45)
评论(0)
推荐(0)
摘要:
dir() is a powerful inbuilt function in Python3, which returns list of the attributes and methods of any object (say functions , modules, strings, lis 阅读全文
posted @ 2022-04-23 16:37
呦呦南山
阅读(86)
评论(0)
推荐(0)
摘要:
It's easy , just enter "pwd " in the terminal. 阅读全文
posted @ 2022-04-23 11:50
呦呦南山
阅读(15)
评论(0)
推荐(0)
摘要:
python3 how to get the elements of the dict.keys() and dict.values() Python 3 mydict = {'a': 'one', 'b': 'two', 'c': 'three'} mykeys = [*mydict] #list 阅读全文
posted @ 2022-04-23 11:05
呦呦南山
阅读(28)
评论(0)
推荐(0)
浙公网安备 33010602011771号