随笔 - 314  文章 - 1 评论 - 127 阅读 - 135万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

03 2020 档案
sqlalchemy 执行原生sql语句(转)
摘要:转自: https://www.cnblogs.com/wt7018/p/11617878.html 1、方式一 # 查询 cursor = session.execute('select * from users') result = cursor.fetchall() # 添加 cursor = 阅读全文
posted @ 2020-03-14 06:52 garfieldtom 阅读(687) 评论(0) 推荐(0) 编辑
python操作mysql(ORM)(转)
摘要:1.https://www.baidu.com/link?url=YPRHwbVIUWG08RvvQnigWIDAwO6ml61SQwnA2KyQkSwKe0Djcp2NNOkXKz422GNL&wd=&eqid=bdd8b5890004f6e6000000025e6b42c8 安装方法pip in 阅读全文
posted @ 2020-03-13 16:26 garfieldtom 阅读(278) 评论(0) 推荐(0) 编辑
Python Selenium 测试
摘要:python下安装selenium包,然后根据浏览器版本下载对应支持程序,写了个简单的测试。 webdriver驱动下载: Chrome 点击下载chrome的webdriver: http://chromedriver.storage.googleapis.com/index.html 不同的Ch 阅读全文
posted @ 2020-03-13 16:17 garfieldtom 阅读(146) 评论(0) 推荐(0) 编辑
Python抓取豆瓣Top250电影信息
摘要:买了本书,《Python 3.5从零开始学》,根据书中例程改写了一个抓取豆瓣Top250电影信息的小爬虫练练手,完成了爬取信息写入文件,Linux下编译通过。 #!/usr/bin/python3 # *_* coding:utf8 *_* from urllib import request fr 阅读全文
posted @ 2020-03-13 16:10 garfieldtom 阅读(220) 评论(0) 推荐(0) 编辑
在Deepin Linux桌面创建快捷方式
摘要:在桌面建立一个文件xxx.desktop,然后按下面格式修改信息即可。 路径在/home/username/Desktop 如:pycharm.desktop [Desktop Entry]Comment=pycharm,a python IDEComment[zh_CN]=pycharm,a py 阅读全文
posted @ 2020-03-11 07:15 garfieldtom 阅读(448) 评论(0) 推荐(0) 编辑
第一个Python+Selenium程序
摘要:先安装好环境,测试第一个简单程序: # -*- coding: utf8 -*- from selenium import webdriver #使用Chrome #ChromeDriverServer="E:\\MySoftGit\\Python\\Selenium\\chromedriver.e 阅读全文
posted @ 2020-03-03 21:18 garfieldtom 阅读(199) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示