06 2023 档案

摘要:实验任务1 1 class Account: 2 def __init__(self, name, account_number, initial_amount = 10): 3 self._name=name 4 self._card_no=account_number 5 self._balan 阅读全文
posted @ 2023-06-08 15:40 喜喜哈木瓜 阅读(12) 评论(0) 推荐(0)
摘要:实验任务1 task1_1 1 from turtle import * 2 3 def moveto(x,y): 4 ''' 5 画笔移动到坐标(x,y)处 6 ''' 7 penup() 8 goto(x,y) 9 pendown() 10 11 def draw(n,size = 100): 阅读全文
posted @ 2023-06-05 23:32 喜喜哈木瓜 阅读(26) 评论(0) 推荐(0)
摘要:实验任务6 1 with open('data6.csv','r',encoding = 'gbk') as f: 2 old_data = f.read().split('\n') 3 del old_data[0] 4 5 new_data = [] 6 for i in range(len(o 阅读全文
posted @ 2023-06-05 23:01 喜喜哈木瓜 阅读(15) 评论(0) 推荐(0)