import os
print(os.getcwd())
# /Users/my/proj/localTest/pyRead
python3-获取文件所在目录
猜你喜欢
转载自blog.csdn.net/weixin_44725156/article/details/90666440
今日推荐
周排行