Python - str.strip() can strip '\n'
摘要:scnzzh: ~ >cat zzh.py print('aaa\n' + 'bbb') print('aaa\n'.strip() + 'bbb') scnzzh: ~ >python zzh.py aaa bbb aaabbb
阅读全文
Python - difference between '../../' and '/../../' when they are concatenated to a path
摘要:zzh1.py: import os.path print(os.path.dirname(__file__)) abs_file_dir = os.path.abspath(os.path.dirname(__file__)) print(abs_file_dir) a = abs_file_di
阅读全文