摘要:
1111 阅读全文
摘要:
python操作mysql数据库 python3中操作mysql数据需要安装一个第三方模块,pymysql,使用pip install pymysql安装即可 import pymysql # 创建连接,指定数据库的ip地址,账号、密码、端口号、要操作的数据库、字符集 conn = pymysql. 阅读全文
摘要:
PS是LINUX下最常用的也是非常强大的进程查看命令-e 显示所有进程。-f 全格式ps -ef | grep httpd :检查httpd进程是否存在 grep 查找文件内容 grep 'besttest' a.txt #从a.txt中查besttest grep -v 'besttest' a. 阅读全文
摘要:
#输入数字,产生对应条数的密码,包括数字,大写字母,小写字母import random,stringcount = input('请输入你要产生多少条密码:').strip()count=int(count)passwds = []f=open('passwds.txt','a+')for i in 阅读全文
摘要:
改之前: #登陆,从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("请输入您的姓名:").stri 阅读全文
摘要:
#写一个注册,用户密码存到文件中(之前)username = input('请输入你的用户名:').strip()pwd = input('请输入你的密码:').strip()pwd2 = input('请再次确认你的密码:').strip()f = open('user_info.txt','a+ 阅读全文
摘要:
>>> seq1 = ['hello','good','boy','doiido'] >>> print ' '.join(seq1) hello good boy doiido >>> print ':'.join(seq1) hello:good:boy:doiido random.sample 阅读全文
摘要:
浏览器开发者工具基本使用教程 https://www.cnblogs.com/mojita/p/5769350.html 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文