用户注册:
import pymysql import hashlib name = input("用户名:") while True: pwd1 = input("密码:") pwd2 = input("请再输入一遍密码:") if pwd1 == pwd2: break try: conn = pymysql.connect(host=
用户注册:
import pymysql import hashlib name = input("用户名:") while True: pwd1 = input("密码:") pwd2 = input("请再输入一遍密码:") if pwd1 == pwd2: break try: conn = pymysql.connect(host=