os.path.join

import os

p1 = "protocol"
p2 = "SMB"

print os.path.join(p1,p2)
  • linux , is “/” , while windows is “\”
posted @ 2019-03-07 15:05  vivi~  阅读(300)  评论(0编辑  收藏  举报