2023年6月12日

实验6

摘要: task1 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/n) def main(): p 阅读全文

posted @ 2023-06-12 11:04 Yli。 阅读(7) 评论(0) 推荐(0)

2023年6月6日

实验5

摘要: task6 with open('data6.csv','r',encoding='gbk') as f: data=f.read().split('\n') del data[0] for i in range(len(data)): data[i]=eval(data[i]) data[i]=f 阅读全文

posted @ 2023-06-06 23:58 Yli。 阅读(12) 评论(0) 推荐(0)

2023年5月23日

实验四

摘要: task1 line1 B68ZZZ33344uilt-in line3Global line7Local line11Enclosing task2.1 def func1(a, b, c, d, e, f): ''' 返回参数a,b,c,d,e,f构成的列表 默认,参数按位置传递; 也支持关键字 阅读全文

posted @ 2023-05-23 21:49 Yli。 阅读(10) 评论(0) 推荐(0)

2023年4月25日

实验三

摘要: task1 import randomprint('用列表存储随机整数: ') lst = [random.randint(0, 100) for i in range(5)] print(lst) print('\n用集合存储随机整数: ') s1 = {random.randint(0, 100 阅读全文

posted @ 2023-04-25 15:34 Yli。 阅读(22) 评论(0) 推荐(0)

2023年3月29日

实验2 字符串和列表

摘要: task1.py x = 'nba FIFA' print(x.upper()) print(x.lower()) print(x.swapcase()) print() x = 'abc' print(x.center(10, '*')) print(x.ljust(10, '*')) print 阅读全文

posted @ 2023-03-29 20:20 Yli。 阅读(13) 评论(0) 推荐(0)

< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10

导航

统计

点击右上角即可分享
微信分享提示