with as
等同于
try:
fd = open(filename, 'wb')
fd.write(chunk)
except:
pass
finally:
fd.close()
等同于
try:
fd = open(filename, 'wb')
fd.write(chunk)
except:
pass
finally:
fd.close()
2017-12-18
輸入pip install gunicore httpbin命令行之后,會出現:Could not find a version that satisfies the requirement gunicore (from versions: )
No matching distribution found for gunicore
解決:pip install httpbin
在下載過程中會發現存在“Collecting Gunicorn (from Flask-Common->httpbin)”
No matching distribution found for gunicore
解決:pip install httpbin
在下載過程中會發現存在“Collecting Gunicorn (from Flask-Common->httpbin)”
2017-12-13
Command "python setup.py egg_info" failed with error code 1 in ~\appdata\local\temp\pip-build-k9xaoc\meinheld\
2017-12-07
為什么一會是response.header,一會又是response.requests.header??????
2017-11-26
我用的是小黃人:http://upload-images.jianshu.io/upload_images/1031810-bc15937f28c281dc.jpeg?imageMogr2/auto-orient/strip%7CimageView2/2
2017-11-26