摘要: import pymysql # 第一步:连接到数据库 conn = pymysql.connect(host="xxx", port=xx, user="xxx", password="xxx", charset="utf8", cursorclass = pymysql.cursors.Dict 阅读全文
posted @ 2020-03-29 18:24 mkay 阅读(98) 评论(0) 推荐(0) 编辑
摘要: import java.text.DecimalFormat; double obj= 1.56 // #.#-1位, #.##-2位,#.###-3位 DecimalFormat df = new DecimalFormat("#.#"); String obj1= df.format(obj); 阅读全文
posted @ 2020-03-27 14:19 mkay 阅读(3597) 评论(0) 推荐(0) 编辑
摘要: mysql: select * from 库名.表名 sqlserver: select * from 库名..表名 select * from 库名.dbo.表名 如有不对,望大家指正 阅读全文
posted @ 2020-03-26 16:23 mkay 阅读(3700) 评论(0) 推荐(0) 编辑
摘要: 现在使用的是豆瓣的镜像下载的pandas插件 pip3 install --index-url https://pypi.douban.com/simple pandas 国内的其他镜像源清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/阿里云 http:/ 阅读全文
posted @ 2020-03-26 15:44 mkay 阅读(17124) 评论(0) 推荐(2) 编辑
摘要: https://www.cnblogs.com/TaleG/p/9187170.html 阅读全文
posted @ 2020-03-26 15:39 mkay 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-24 14:51 mkay 阅读(957) 评论(0) 推荐(0) 编辑
摘要: 01 request模块基本操作 # 导入requests模块 import requests # 准备请求相关数据 url = "https://api.tuhu.cn/Product/GetTireList" headers = { "content-type": "application/js 阅读全文
posted @ 2020-03-22 16:43 mkay 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 强迫症法宝 转载自:https://blog.csdn.net/xiemanr/article/details/72583718 默认情况下,PyCharm中如果有无法错误或者不符合PEP8规范代码下面会有波浪线,语法错误波浪线为红色(如下图的第10行),不符合PEP8规范为浅黄色波浪线(如下图的第 阅读全文
posted @ 2020-03-22 14:16 mkay 阅读(3107) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/github_38996697/article/details/88998626 阅读全文
posted @ 2020-03-19 23:11 mkay 阅读(950) 评论(0) 推荐(0) 编辑
摘要: pip install BeautifulReport HTMLTestRunnerNew不能用pip安装,下载HTMLTestRunnerNew.py文件放到python安装目录下 pip install openpyxl —— 处理excel数据 pip install pyyaml ——yam 阅读全文
posted @ 2020-03-19 22:18 mkay 阅读(616) 评论(0) 推荐(0) 编辑