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._balanc 阅读全文
posted @ 2023-06-07 15:51 仲益君 阅读(26) 评论(0) 推荐(0)
摘要:实验任务1 task1_1.py 源代码 1 from turtle import* 2 3 def move(x,y): 4 penup() 5 goto(x,y) 6 pendown() 7 8 def draw(n,size=100): 9 for i in range(n): 10 fd(s 阅读全文
posted @ 2023-06-06 12:52 仲益君 阅读(31) 评论(0) 推荐(0)
摘要:实验任务6 源代码 1 with open('data6.csv','r',encoding='gbk')as f: 2 data=list(f.readlines()) 3 data=[i.strip('\n') for i in data ] 4 5 import decimal 6 decim 阅读全文
posted @ 2023-06-04 19:59 仲益君 阅读(40) 评论(0) 推荐(0)