【发布时间】:2019-04-17 15:57:45
【问题描述】:
以下代码在unix-base系统上运行良好,使用/tmp存储文件,但是在windows操作系统下如何使用呢?
local_filename, headers = urllib.request.urlretrieve('http://127.0.0.1/translations/python-3.7.3.exe')
print(local_filename)
fd = open(local_filename)
fd.close()
【问题讨论】:
-
你可以提供一个
filenamearguemt -
你试过了吗?
标签: python windows file urllib