python http 使用代理
摘要:免费代理地址 https://www.zdaye.com/dayProxy.html http://www.goubanjia.com/
阅读全文
posted @
2019-12-12 11:16
苏上话
阅读(957)
推荐(0)
SQLAlchemy基本操作和常用技巧
摘要:https://www.jb51.net/article/49789.htm https://blog.csdn.net/young_kp/article/details/82423596
阅读全文
posted @
2019-12-11 15:20
苏上话
阅读(198)
推荐(0)
python3运行的时候隐藏命令窗口的方法
摘要:将后缀.py改成.pyw改完后,文件属性里面可以看到:Python File (no console) (.pyw)显示no console,在运行的时候就不会弹出命令窗口了。
阅读全文
posted @
2019-12-10 15:55
苏上话
阅读(2268)
推荐(1)
Python 实现定时任务 APScheduler
摘要:https://www.cnblogs.com/fengff/p/11011000.html
阅读全文
posted @
2019-12-10 14:29
苏上话
阅读(492)
推荐(0)
pycharm 破解
摘要:https://blog.csdn.net/qq_34755081/article/details/81545717
阅读全文
posted @
2019-12-10 11:43
苏上话
阅读(155)
推荐(0)
python+selenium+chrome driver 环境配置
摘要:chromedriver安装 在这之前请确保已经正确安装好了Chrome浏览器并可以正常运行,安装过程不再赘述。谷歌浏览器最好不要太旧 点击Chrome菜单“帮助”→“关于Google Chrome”,即可查看Chrome的版本号 请记住Chrome版本号,因为选择ChromeDriver版本时需要
阅读全文
posted @
2019-07-15 16:07
苏上话
阅读(13767)
推荐(0)
python 多版本运行 模块
摘要:使用pip 当Python2和Python3同时存在于windows上时,它们对应的pip都叫pip.exe,所以不能够直接使用 pip install 命令来安装软件包。而是要使用启动器py.exe来指定pip的版本。命令如下: -2 还是表示使用 Python2,-m pip 表示运行 pip
阅读全文
posted @
2019-01-29 17:00
苏上话
阅读(397)
推荐(0)
Linux 下python3.7 安装
摘要:我这里使用的是CentOS7,默认系统自带python2.7的版本,这个版本被系统很多程序所依赖,所以不建议删除,如果使用最新的Python3那么我们知道编译安装源码包和系统默认包之间是没有任何影响的,所以可以安装python3和python2共存 1、安装依赖包 1)首先安装gcc编译器,gcc有
阅读全文
posted @
2018-11-27 10:05
苏上话
阅读(4329)
推荐(1)
pandas 篇
摘要:for i in range(0, len(df)): s+=df.iloc[i]['code']+" "+df.iloc[i]['name']+" "+df.iloc[i]['price']+"\n"
阅读全文
posted @
2018-11-20 15:11
苏上话
阅读(145)
推荐(0)
IO操作篇:
摘要:def write_to_file(content): with open('result.txt','a',encoding='utf-8') as f: f.write(content+"\n")
阅读全文
posted @
2018-11-20 15:10
苏上话
阅读(152)
推荐(0)
python 零碎知识总结 用法
摘要:request 篇: import requests from urllib import parse data={ 'text':'股票价格', 'desp':s } url_data =parse.urlencode(data) url = "https://sc.ftqq.com/6.send
阅读全文
posted @
2018-11-20 15:05
苏上话
阅读(180)
推荐(0)
pandas 读写excel
摘要:1 # 读写 excel主要通过read_excel 、 to_excel函数实现,除了pandas还需要安装第三方库 xlrd、 openpyxl 2 3 import pandas as pd 4 5 #读取excel 6 df = pd.DataFrame(pd.read_excel('E:\
阅读全文
posted @
2018-11-13 15:34
苏上话
阅读(3819)
推荐(0)
Django 框架
摘要:一、Django简介 开放源代码的Web应用框架,由Python语言编写...... 重点:一个大而全的框架,啥都替你考虑好了。 二、我们学Django学的是什么? 1. 目录结构规范 2. urls路由方式 3. settings配置 4. ORM操作 5. jinja2模板渲染 6.其它 三、我
阅读全文
posted @
2018-11-06 20:41
苏上话
阅读(133)
推荐(0)
Windows 下 Django 安装
摘要:安装Django之前需要安装 python 1、一键安装 >>> pip install Django 2、源码安装 下载源码 并进入源码目录 (注意需要管理员权限) >>> python setup.py install # 执行安装命令 源码下载地址 https://github.com/dja
阅读全文
posted @
2018-11-06 20:32
苏上话
阅读(179)
推荐(0)
python Pystaller 将python文件打包成exe
摘要:1、PyInstaller是一个第三方库,通过对源文件打包,Python程序可以在没有安装 Python的环境中运行。 2、在命令行使用pip install pyinstaller安装即可。(win+r,输入cmd,打开命令行) 3、将cmd的目录切换至(命令:cd 文件路径(注意空格))需要打包
阅读全文
posted @
2018-10-17 20:34
苏上话
阅读(1550)
推荐(0)