2016-05-27 10 views

答えて

1

、あなたができる:

A = a.strip('/').split('/') 
B = b.strip('/').split('/') 
if A[-1] == B[0]: 
    print("/{}/".format("/".join(A + B[1:]))) 
+1

は '' '/オーバーos.path.sep'を使用すべき – dwanderson

関連する問題