一.python操作mysql 1.1 基本语法 创建连接 host user passwor database 这四个参数必须写 import pymysql conn=pymysql.connect(host="127.0.0.1",user="root",password="",databas ...
分类:
编程语言 时间:
2020-06-20 16:36:33
阅读次数:
62
# abs(-3) #取绝对值 # all('1,a,3,0') #对传入的值做布尔运算,全为真则为真。 # any([2,None,]) #对传入的值做布尔运算,有真则为真 # bin(15) #转二进制输出 # oct(15) #转八进制输出 # hex(15) #转十六进制输出 # bool( ...
分类:
编程语言 时间:
2020-06-20 14:19:21
阅读次数:
86
1、因为电脑不是最新版本,先更新:pip install --upgrade pandas 2、感兴趣,或者今后可能会常用的: (b)查看缺失值的所以在行 df[df['Physics'].isna()] (c)挑选出所有非缺失值列 使用all就是全部非缺失值,如果是any就是至少有一个不是缺失值 ...
分类:
其他好文 时间:
2020-06-20 13:54:12
阅读次数:
49
代码: 结果: PS E:\30.Study\30.自动化测试\99.零基础入门 Python Web 自动化测试\10.seleniumCodePractice> & "C:/Program Files/Python38/python.exe" "e:/30.Study/30.自动化测试/99.零 ...
分类:
编程语言 时间:
2020-06-20 11:09:48
阅读次数:
76
传送门 点击进入Github,https://github.com/yulongcode/dockerfiles 简单介绍 Dockerfiles 搭建基础公用环境包,方便使用,支持业务不断的提升而需要一些软件的支持但由于本身不懂或耗时导致不方便安装升级的一种解决方案 目前还没有完整的测试过请不要在 ...
分类:
系统相关 时间:
2020-06-20 01:11:36
阅读次数:
79
import simplejson import anyjson # 序列化: 把变量从内存中变成可存储或可传输的过程 def any_1(): # 序列化 info = {"a": 1, "b": 2} result = anyjson.serialize(info) f = open("file ...
分类:
Web程序 时间:
2020-06-19 21:18:37
阅读次数:
67
在最近的工作中,由于服务中数据量较大,在前端请求的时候,延迟比较严重,(我们服务中web界面的数据都是从数据库中取出通过一定计算得到的,则就会有大量的数据库操作),在前期的时候,我们都是无脑的将数据返回较慢的接口给加了一层缓存,而我们的缓存的更新方式也很简单粗暴,就是间隔一定时间后,后端自己去更新所 ...
分类:
其他好文 时间:
2020-06-18 21:27:56
阅读次数:
65
the vm session was closed before any attempt to power it on
分类:
其他好文 时间:
2020-06-18 00:57:12
阅读次数:
53
OBDSTAR X300M is specially developed for odometer adjustment, which makes it devoted and professional. There’re some things you need to keep in mind w ...
分类:
其他好文 时间:
2020-06-17 19:59:55
阅读次数:
58
1072 Gas Station (30分) A gas station has to be built at such a location that the minimum distance between the station and any of the residential housi ...
分类:
其他好文 时间:
2020-06-17 18:32:50
阅读次数:
58