python
Hero_孙
JAVA是最好的语言!
展开
-
使用python 读写文件
#读取文件,拼接成sqllist1 = ['zhihu1', 'zhihu2', 'zhihu3','zhihu4', 'dongqiudi','zhongqingkandian']# list1 = ['zhihu1']result = 'D:/00files/result.txt'start = 'insert into media_user_profile(adx_id, adx_sub_id, device_type, device_id, positive_crowd, negativ.原创 2020-10-27 15:56:07 · 109 阅读 · 0 评论 -
使用django搭建一个项目
windows7python 3.7idea安装djangopip install django创建HelloWorld在D:/HelloWorld 执行django-admin startproject HelloWorld会在当前目录下生产HelloWorld项目使用idea打开在idea的Terminal 中执行(在CMD中执行卡在了Watching for file changes with StatReloader)python manage.py原创 2020-07-01 17:21:19 · 298 阅读 · 0 评论 -
使用python下载文件
使用requestspython 3.71 下载指定文件import requestsurl = 'https://images.jjxsw.la/images/mijjxswcom.gif'req = requests.get(url)with open('a.swf', 'wb') as code: code.write(req.content)原创 2020-07-01 17:05:15 · 325 阅读 · 0 评论