摘要: 阅读全文
posted @ 2021-06-11 23:01 幸福里 阅读(25) 评论(2) 推荐(0)
摘要: class StudentDoc: def __init__(self, number, name, major, score): self._number = number self._name = name self._major = major self._score = score def 阅读全文
posted @ 2021-05-26 09:32 幸福里 阅读(22) 评论(2) 推荐(0)
摘要: 任务六with open('data6_1.txt','r',encoding='utf-8') as f: a=[] for line in f.readlines(): m=line.strip().split() a.append(m) a.sort(key=lambda l:l[2],rev 阅读全文
posted @ 2021-05-17 21:37 幸福里 阅读(36) 评论(2) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-21 21:23 幸福里 阅读(37) 评论(2) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-16 16:38 幸福里 阅读(15) 评论(1) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-04 16:52 幸福里 阅读(32) 评论(1) 推荐(0)
摘要: # 用法1: 用于输出单个字符串或单个变量 print('hey,u') # 用法2: 用于输出多个数据项,用逗号分隔 print('hey', 'u') x = 1 y = 2 z = 3 print(x, y, z) # 用法3: 用户混合字符串和变量值 print('x = %d, y = % 阅读全文
posted @ 2021-04-02 22:13 幸福里 阅读(63) 评论(0) 推荐(0)