Python获取当前路径可以使用os模块或sys模块,使用sys.path[0]、sys.argv[0]、os.getcwd()、os.path.abspath(__file__)、os.path.realpath(__file__)。
技术文章 / 下载软件趣味内容 / 专业带飞