06 2023 档案

摘要:实验任务1 task1.py 实验源码: class Account: '''一个模拟银行账户的简单类''' def __init__(self, name, account_number, initial_amount = 10): '''构造新账户''' self._name = name se 阅读全文
posted @ 2023-06-08 14:28 yyzhzbkby 阅读(14) 评论(0) 推荐(0) 编辑
摘要:实验任务1 task1_.py 实验源码: from turtle import * def move(x, y): penup() goto(x, y) pendown() def draw(n, size = 100): for i in range(n): fd(size) left(360/ 阅读全文
posted @ 2023-06-06 23:14 yyzhzbkby 阅读(12) 评论(0) 推荐(0) 编辑
摘要:实验任务6 task6.py 实验源码: with open('data6.csv','r',encoding='gbk') as f: data1 = f.read().split('\n') del data1[0] for i in range(len(data1)): data1[i] = 阅读全文
posted @ 2023-06-03 21:20 yyzhzbkby 阅读(21) 评论(0) 推荐(0) 编辑