13 os.path.abspath 获取绝对路径

path = '20190409_192149.mp4' # D:\code\s21day14\20190409_192149.mp4

import os
v1 = os.path.abspath(path)
print(v1)
posted @ 2024-09-26 22:47  jhchena  阅读(3)  评论(0编辑  收藏  举报