os.path.join()的坑

2018-01-27  本文已影响695人  DeepWeaver
>>> a = "/lskdj/lskjd"
>>> b = "lsdkj/;sdsl/"
>>> os.path.join(a,b)
'/lskdj/lskjd/lsdkj/;sdsl/'
>>> os.path.join(b, a)
'/lskdj/lskjd'
>>> c = "/lskdjs/slkdjs"
>>> os.path.join(a, c)
'/lskdjs/slkdjs'
上一篇下一篇

猜你喜欢

热点阅读