python 路径拼接

 

>>> import os
>>> os.path.join('/hello/','good/boy/','doiido')
>>>'/hello/good/boy/doiido'

 

 

参考:
https://blog.csdn.net/fu6543210/article/details/80032895

 

posted @ 2019-08-29 18:11  anobscureretreat  阅读(1387)  评论(0编辑  收藏  举报