摘要: import requestsimport unittestclass logintest(unittest.TestCase): #测试类名 def setUp(self): #用固件setUp初始化 self.url = "http://www.xxx.com/login.html" def t 阅读全文
posted @ 2019-01-03 20:56 Bambooboo 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #!/use/bin/python#encoding=utf-8filename="WinPMT.log"filename_1="WinPMT_stress.txt"with open(filename_1,"w") as file_object_1: file_object_1.write("") 阅读全文
posted @ 2019-01-03 20:56 Bambooboo 阅读(155) 评论(0) 推荐(0) 编辑
摘要: import requestsimport unittestclass logintest1(unittest.TestCase): def setUp(self): self.test_url = "http://www.eebbk.com/" def testlogin(self): r = r 阅读全文
posted @ 2019-01-03 20:56 Bambooboo 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 浮点型: 日期时间型: 整型: 字符型: 阅读全文
posted @ 2019-01-03 20:55 Bambooboo 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 操作数据表中的记录 插入记录INSERT [INTO] tb1_name [(col_name)] {VALUES|VALUE} ({expr | DEFAULT},...),(...),...net start mysqlmysql -uroot -p123456use test;CREATE T 阅读全文
posted @ 2019-01-03 20:46 Bambooboo 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 约束与修改数据表 1.约束保证数据的完整性和一致性。 2.约束分为表级约束和列级约束。 3.约束类型分为: NOT NULL(非空约束) PRIMARY KEY(主键约束) UNIQUE KEY(唯一约束) DEFAULT(默认约束) FOREIGN KEY(外键约束)表级约束可以同时用于两个或两个 阅读全文
posted @ 2019-01-03 20:45 Bambooboo 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 数据类型与操作数据表 打开数据库:USE 数据库名称; USE t1;显示当前用户打开的数据库:SELECT DATABASE();创建数据表:CREATE TABLE [IF EXISTS] table_name (column_name data_type,……) CREATE TABLE tb 阅读全文
posted @ 2019-01-03 20:44 Bambooboo 阅读(160) 评论(0) 推荐(0) 编辑
摘要: mysql -V 查看mysql的版本mysql -uroot -p123456 -P3306 -h127.0.0.1 -u用户名 -p密码 -P端口 -h127.0.0.1 连接本地服务器 修改提示符:prompt+提示符 #prompt提示MYSQL默认端口号:3306 MYSQL中的超级用户: 阅读全文
posted @ 2019-01-03 20:42 Bambooboo 阅读(216) 评论(0) 推荐(0) 编辑
摘要: import csvfrom matplotlib import pyplot as pltfilename = 'sitka_wather.csv'# 打开文件,存储在f中with open(filename) as f: reader = csv.reader(f) # 用next函数获取第一行的值 header_row = next(reader) print(hea... 阅读全文
posted @ 2018-10-31 00:18 Bambooboo 阅读(490) 评论(0) 推荐(0) 编辑
摘要: ①创建一个骰子模拟 die.py 阅读全文
posted @ 2018-10-30 00:30 Bambooboo 阅读(835) 评论(0) 推荐(0) 编辑