学习 第9页
个人学习记录

5.24(2)Linux小练习

添加1块ide接口的1g硬盘、1块sata接口的2g硬盘、1块scsi接口的3g硬盘 [root@localhost ~]# fdisk -l 添加后查看的三个分别为sdc sdd sdb [root@localhost ~]# fdisk /dev/sdc [root@localhost ~...
珊瑚海的头像-北梦の博客珊瑚海1年前
0241

python_课堂作业_5.11

import re # 1.re.split()和字符串中的split()函数一样,用来切割字符串 # str.split()函数不支持正则表达式和多个切割符号 # re.split()函数可以通过正则表达式切割字符串,支持使用多个分隔...
X.蔡徐坤的头像-北梦の博客X.蔡徐坤1年前
1212

C语言练习题-数组总题目1

1.定义一个包含 10 个整数的一维数组,计算并输出数组中所有元素的平均值。 // 1.定义一个包含 10 个整数的一维数组,计算并输出数组中所有元素的平均值。 #include <stdio.h> int main() { ...
北梦的头像-北梦の博客SVIP北梦1个月前
0201

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_练习_mysql_24.6.6

import pymysql db = pymysql.connect( host='localhost', user='root', password='123456789', db='world' ) cursor = db.cursor() sql = '''CREATE TABLE zhangsan ( sno CHAR(10) PRIMARY KE...
北梦的头像-北梦の博客SVIP北梦1年前
0191

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...
珊瑚海的头像-北梦の博客珊瑚海12个月前
0181

python–课堂

import re #1.正则表达式的两种定义方法 #(1)字符串方法: #匹配小写字母任意次 pattern = '[a-z]*'#正则表达式 print(re.match(pattern,'he123llo123'))#匹配0到第5个字符 print(re.match(pa...
iu不错哦的头像-北梦の博客iu不错哦1年前
0181

python课堂笔记

 
iu不错哦的头像-北梦の博客iu不错哦1年前
0181

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 = ...
珊瑚海的头像-北梦の博客珊瑚海12个月前
0171

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