if __name__ == "__main__":
path_one = "/hello/world"
path_two = "/my/little/friend"
path_tree = 3
print os.path.join(path_one, path_two, str(path_tree))
# /my/little/friend\3 , but i want get this /hello/world/my/little/friend/3
print os.path.join(path_two, str(path_tree))
# /my/little/friend\3 , but i want get this /my/little/friend/3
# ok, go
print os.path.join(os.path.abspath(path_one), os.path.abspath(path_two), str(path_tree))
# C:\my\little\friend\3 , but i want get C:\hello\world\my\little\friend\3
print os.path.join(os.path.abspath(path_two), str(path_tree))
# C:\my\little\friend\3 , all right!
print os.path.join(os.path.abspath(path_two), str(path_tree), '/', '232\\')
# /232\ , but i want C:\my\little\friend\3\232\
平时不带手鼓跳舞怎么能加入小道呢?