Obtenez le chemin complet du chemin reletif Python
import os
simp_path = 'demo/which_path.docx'
abs_path = os.path.abspath(simp_path)
print(abs_path)
DreamCoder
import os
simp_path = 'demo/which_path.docx'
abs_path = os.path.abspath(simp_path)
print(abs_path)
import os
simp_path = 'demo/which_path.docx'
abs_path = os.path.abspath(simp_path)
print(abs_path)
import os
simp_path = 'demo/which_path.docx'
abs_path = os.path.abspath(simp_path)
print(abs_path)
import os
simp_path = 'demo/which_path.docx'
abs_path = os.path.abspath(simp_path)
print(abs_path)
import os
simp_path = 'demo/which_path.docx'
abs_path = os.path.abspath(simp_path)
print(abs_path)