a = b' aaaa'
a.decode('utf-8')
创建目录
···
APP_ROOT = os.path.dirname(os.path.abspath(file))
target = os.path.join(APP_ROOT, 'images')
print(target)
if not os.path.isdir(target):
os.mkdir(target)
···
a = b' aaaa'
a.decode('utf-8')
创建目录
···
APP_ROOT = os.path.dirname(os.path.abspath(file))
target = os.path.join(APP_ROOT, 'images')
print(target)
if not os.path.isdir(target):
os.mkdir(target)
···
本文标题:python 小知识积累
本文链接:https://www.haomeiwen.com/subject/mmzdyqtx.html
网友评论