自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 笔记

dict:字典;list:列表;tuple:元组;iterable:可迭代对象;isinstance:判断对象;iterator:迭代器;def:设置函数;str:字符串;map:把函数在列表里运算;reduce:把函数作用在序列;sum:求和函数;int:整型;float:浮点型;complex:复数;Python lower() 方法转换字符串中所有大写字符为小写;Python upp...

2020-04-13 13:27:03 88

原创 课堂笔记

<h1-6>标题标签——标签之间的内容 从大到小 自动换行<p>段落标签——自动换行<hr/>分隔线,往往后面放一个/来表示他是一个单标签<em>斜体标签<br>换行标签<strong>加粗标签...

2020-03-24 10:10:19 82

原创 作业

import timeuser_list=[]user_login={}error_dic={}petian_list=[]def read_all_user(): if user_list: return with open('account_info.txt', 'rt', encoding='utf-8') as f: text...

2020-03-01 02:41:52 107

原创 小明的成绩从去年的72分提升到了今年的85分,请计算小明成绩提升的百分点

s1=72s2=85r=(s2-s1)/s1*100print('%.2f%%'%r)

2019-12-19 22:02:10 4928

原创 字符串

占位符 替换内容 %d 整数 %f 浮点数 %s 字符串 %x 十六进制整数

2019-12-19 21:48:07 52

原创 金字塔/99乘法表

fo = open('c.txt','a')for i in range(1,20,2): str = ('*'*i).center(19) fo.write(str) fo.write('\n')f = open('c.txt','w')s = ''for i in range(1,10): for j in range(1,i+1): ...

2019-12-19 14:23:55 538

原创 金字塔

s = 5for i in range(1,s + 1): print(' ' * (s - i) + '*' * (2 * i - 1))

2019-12-12 14:56:47 131

原创 99乘法表

for i in range(1, 10): for j in range(1, i+1): print('{}x{}={}\t'.format(j, i, i*j), end='') print()

2019-12-12 14:49:56 121

原创 购物车(完整版)

import timeuser_list=[]shopping_car=[]user_login={}error_dic={}def read_all_user(): if user_list: return with open('account_info.txt','rt',encoding='utf-8') as f: text=...

2019-12-12 14:32:33 615

原创 选课(完整版)

#学生登陆student_login={}#教师登陆teacher_login=[]#学生名单student_list=[]#查看所有课程look_allclass=[]#老师名单teacher_list={}#学生def read_all_user(): if student_list: return with open('account...

2019-12-12 14:29:05 296

原创 一箭穿心

import turtleturtle.setup(650,650,600,200)turtle.penup()turtle.setposition(0,0)turtle.pendown()turtle.pensize(10)turtle.pencolor("red")turtle.seth(45)turtle.circle(-50,180)turtle.fd(98)turt...

2019-11-28 18:01:57 353

原创 家庭作业

student_login={}register=[]chioce_class=[]look_class=[]teacher_login=[]look_student=[]add_teacher=[]add_class=[]admin_login=[]admin=[]teacher=[]student=[]student_list=[]course=[]look_al...

2019-11-28 17:39:34 84

原创 购物车

import timeuser_list=[]def read_all_user(): if user_list: return with open('account_info.txt','rt',encoding='utf-8') as f: text=f.read() if not text:return ...

2019-11-26 12:27:01 192

原创 作业

第一题i=[‘铁蛋’,‘张三’,‘李四’,‘王五’,‘小花’]i.insert(2,‘小明’)print(i)a=[‘金蛋’,‘银蛋’]i.append(a)print(i)i[0]=‘小军’print(i)findi=input(‘请输入要查找的姓名:’)#iffindiini:#print(‘在’)#else:#print(‘不在’)...

2019-10-23 21:26:44 115 1

原创 作业

#num1i=10he=0while i<100: he=he+i i +=1 print(he)#num2x=1y=10for s in range(1,11): x=x*sprint(x)#num3i=1he=0while i<1000: if i%2==0: he=he+i ...

2019-10-16 14:59:20 67

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除