学习 第10页
个人学习记录

python-课堂-5.30

#创建3个线程,每个线程包括2个子线程 import threading import time def process(): for i in range(2): time.sleep(2) print('线程的名称:{}'.format(threading.currentThread().name))#thre...
iu不错哦的头像-北梦の博客iu不错哦1年前
0191

python-pymysql

import pymysql #需求:在world数据库中,创建一张student表 #1.连接数据库 db=pymysql.connect(host='localhost',user='root',passwd='123456789',db='world') #创建一个游标对象 cursor=db.cu...
iu不错哦的头像-北梦の博客iu不错哦1年前
0171

python-模板-6-11

import pymysql #1.创建学生表,插入两条数据 #数据库连接 conn=pymysql.connect(host='localhost',user='root',password='123456789',db='world') cursor=conn.cursor() # create_sql='''creat...
iu不错哦的头像-北梦の博客iu不错哦1年前
0161

python-6.7

import pymysql db=pymysql.connect(host='localhost',user='root',password='root',db='mysql') cursor=db.cursor() # sql='''create table student(sno char(10),sname varchar(20),primary k...
iu不错哦的头像-北梦の博客iu不错哦1年前
0161

python-课堂笔记(5.10)

import re #1.re.findall()函数:查找字符串中所有匹配的子串,返回值类型是列表,如果未匹配到,则返回一个空列表而不是none # str1='qwertyuioppoiu0516q' # a=re.findall('i',str1) # print(a...
iu不错哦的头像-北梦の博客iu不错哦1年前
0121