first commit

This commit is contained in:
rangang
2026-08-12 17:40:45 +08:00
commit 84b2bdb35d
12 changed files with 1958 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import os
# 示例 3: 末尾路径为空
path = os.path.join("/home/user", "documents", "")
print(path) # 输出: /home/user/documents/
path = os.path.join("/home/user", "documents")
print(path) # 输出: /home/user/documents