是的,有这样一个内置函数:
os.path.join。
>>> import os.path>>> os.path.join('/my/root/directory', 'in', 'here')'/my/root/directory/in/here'
是的,有这样一个内置函数:
os.path.join。
>>> import os.path>>> os.path.join('/my/root/directory', 'in', 'here')'/my/root/directory/in/here'