新建一个文件:testcode.pyimport osprint(__file__) # __file__指代所在脚本的文件名print(os.getcwd()) # 获取当前项目工作目录print(os.path.realpath(__file__)) ...
確定! 回上一頁