- 博客(8)
- 收藏
- 关注
转载 htmltestrunner
1111转载于:https://www.cnblogs.com/zpp20171215/p/11469546.html
2019-09-05 20:36:00 69
转载 python操作数据库
python操作mysql数据库python3中操作mysql数据需要安装一个第三方模块,pymysql,使用pip install pymysql安装即可import pymysql # 创建连接,指定数据库的ip地址,账号、密码、端口号、要操作的数据库、字符集 conn = pymysql.connect(host='127.0.0.1', port=33...
2018-04-26 16:11:00 54
转载 linux常用命令
PS是LINUX下最常用的也是非常强大的进程查看命令-e 显示所有进程。-f 全格式ps -ef | grep httpd :检查httpd进程是否存在grep 查找文件内容 grep 'besttest' a.txt #从a.txt中查besttest grep -v 'besttest' a.txt #排除besttestps -ef|gr...
2018-04-26 14:03:00 82
转载 习题:输入一个数字,产生密码包括大小写,数字
改之后:#输入数字,产生对应条数的密码,包括数字,大写字母,小写字母import random,stringcount = input('请输入你要产生多少条密码:').strip()count=int(count)passwds = []for i in range(count): #list = [0,1,2,3,4,5,6,7,8,9] num = random.sam...
2018-01-05 09:31:00 207
转载 习题:从存取中的文件中验证登录
改之前:#登陆,从user_info.txt中验证count=1#print(count)f = open('user_info.txt','a+')f.seek(0)user_info = f.read()while count<=3: name = input("请输入您的姓名:").strip() password = input("请输入您的密码:").st...
2018-01-05 09:14:00 74
转载 习题:注册用户,密码存到文件中
#写一个注册,用户密码存到文件中(之前)username = input('请输入你的用户名:').strip()pwd = input('请输入你的密码:').strip()pwd2 = input('请再次确认你的密码:').strip()f = open('user_info.txt','a+')f.seek(0)user_info = f.read()user_num = len...
2018-01-05 09:13:00 234
转载 day3
>>> seq1=['hello','good','boy','doiido']>>>print' '.join(seq1)hello good boy doiido>>>print':'.join(seq1)hello:good:boy:doiidorandom.sample r...
2018-01-04 18:07:00 52
转载 浏览器
浏览器开发者工具基本使用教程https://www.cnblogs.com/mojita/p/5769350.html转载于:https://www.cnblogs.com/zpp20171215/p/8084935.html
2017-12-22 10:51:00 54
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人