上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>图像标签学习</title> </head> <body> <!--img学习 src:图片地址(必填) 相对地址,绝对地址 ../ --上一级目录(相对地址) 阅读全文
posted @ 2022-08-05 17:19 tuyin 阅读(28) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>基本标签学习</title> </head> <body> <!--标题标签--> <h1>一级标签</h1> <h2>二级标签</h2> <h3>三级标签</ 阅读全文
posted @ 2022-08-05 17:09 tuyin 阅读(34) 评论(0) 推荐(0)
摘要: <!-- DOCTYPE:告诉浏览器,我们要使用什么规范--> <!DOCTYPE html> <html lang="en"> <!--快捷添加注释:①ctrl+ / 或者 ②shift+ctrl+ /--> <!--head标签代表网页头部--> <head> <!--meta描述性标签,用来描 阅读全文
posted @ 2022-08-05 17:04 tuyin 阅读(33) 评论(0) 推荐(0)
摘要: import os filename = 'student.txt' def main(): while True: menum() choice = int(input("请选择对应数字:")) if choice in [0, 1, 2, 3, 4, 5, 6, 7]: if choice == 阅读全文
posted @ 2022-08-05 16:05 tuyin 阅读(105) 评论(0) 推荐(0)
摘要: 任务一: import time def show_info(): print('输入提示数字,执行相应的操作:0.退出 1.查看登录日志') # 记录日志 def write_logininfo(username): with open('log.txt', 'a')as file: s = f' 阅读全文
posted @ 2022-08-05 16:03 tuyin 阅读(74) 评论(0) 推荐(0)
摘要: 任务一: import prettytable as pt # 显示座席 def show_ticket(row_num): tb = pt.PrettyTable() tb.field_names = ['行号', '座位1 ', '座位2', '座位3', '座位4', '座位5'] for i 阅读全文
posted @ 2022-08-05 16:01 tuyin 阅读(54) 评论(0) 推荐(0)
摘要: 任务一: class Instrument(): def make_sound(self): pass class Erhu(Instrument): def make_sound(self): print('二胡在演奏') class Piano(Instrument): def make_sou 阅读全文
posted @ 2022-08-05 15:59 tuyin 阅读(45) 评论(0) 推荐(0)
摘要: 任务一: import math class Circle(object): def __init__(self, r): self.r = r def get_area(self): return math.pi*math.pow(self.r, 2) def get_perimeter(self 阅读全文
posted @ 2022-08-05 15:57 tuyin 阅读(51) 评论(0) 推荐(0)
摘要: 任务一: try: score = int(input('请输入你的分数:')) if 0 <= score <= 100: print('分数为:', score) else: raise Exception('分数不正确') except Exception as e: print(e) 任务二 阅读全文
posted @ 2022-08-05 15:55 tuyin 阅读(55) 评论(0) 推荐(0)
摘要: 任务一: def calc(a, b, op): if op == "+": return add(a, b) elif op == "-": return sub(a, b) elif op == '*': return mul(a, b) elif op == "/": if b!= 0: re 阅读全文
posted @ 2022-08-05 15:54 tuyin 阅读(48) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页