学习 第6页
个人学习记录

ENSP常用命令

一、华为设备命令视图 华为设备的常用命令视图 用户视图 <Huawei> 系统视图 <Huawei>system-view/sys [Huawei] 接口视图 <Huawei>system-view/sys [Huawei]interface/int Ethernet0/0/...
北梦的头像-北梦の博客SVIP北梦10个月前
0731

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不错哦11个月前
0191

python-pymysql

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

python作业加注释6月6日

import pymysql my = pymysql.connect( host='127.0.0.1', user='root', password='123456789', db='world' ) cur = my.cursor() cur.execute('DROP TABLE IF EXISTS minyan;') sql = '''create...
koniaoer的头像-北梦の博客koniaoer10个月前
0361

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不错哦10个月前
0161

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不错哦10个月前
0151

Python-pymysql建表

import pymysql zwy = pymysql.connect(host='localhost', user='root', password='123456789', db='world') cursor = zwy.cursor() create_sql = '''create table student ( sid char(10), sna...
珊瑚海的头像-北梦の博客珊瑚海10个月前
0101

Python-pymysql插入

import pymysql zwy = pymysql.connect(host='localhost', user='root', password='123456789', db='world') cursor = zwy.cursor() insert_many_sql = [('01', 'zwy', 'n'), ('02', 'yxj', 'n'...
珊瑚海的头像-北梦の博客珊瑚海10个月前
061

Python-pymysql修改

import pymysql zwy = pymysql.connect(host='localhost', user='root', password='123456789', db='world') cursor = zwy.cursor() zwy.commit() update_sql = '''update student set sname = ...
珊瑚海的头像-北梦の博客珊瑚海10个月前
0151

Python-pymysql删除

import pymysql zwy = pymysql.connect(host='localhost', user='root', password='123456789', db='world') cursor = zwy.cursor() zwy.commit() delete_sql = 'delete from student where sna...
珊瑚海的头像-北梦の博客珊瑚海10个月前
0141