- 博客(2)
- 收藏
- 关注
原创 嗯嗯嗯嗯嗯
# 实验4# class MyError(Exception):# def __init__(self, string):# super().__init__()# self.string = string## def __str__(self):# if len(self.string) < 5: # 判断# return 'The input is of length 3,expecting at le...
2022-05-04 17:21:39
193
原创 呜呜呜无语
# 实验2 import random import csv import os def unicode(): val = random.randint(0x4e00, 0x9fbf) return chr(val) with open('info.csv', 'w', newline='', encoding='utf-8') as f: # encoding指定编码格式,否则写入乱码 head = ['姓名', '性别', '年龄', '成绩'] # 表头 ...
2022-05-04 17:15:27
161
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人