摘要: task3 from turtle import * def square(size=50, rgb='pink'): '''绘制正方形 参数size指定边长 参数rgb指定画笔颜色 如果没有给参数,采用默认值 ''' pencolor(rgb) for i in range(4): fd(size 阅读全文
posted @ 2022-06-08 14:47 廖一头雾水 阅读(23) 评论(0) 推荐(0) 编辑
摘要: class User: num=0 def __init__(self,name='guest',password='111111',status='1'): User.num+=1 self.name=name self.password=password if status=='1': self 阅读全文
posted @ 2022-06-07 15:55 廖一头雾水 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task1 1 task1 2 task1 3 task2 1 task2 2 task2 3 task2 4 task3 task4 task5 1 task5 2 task6 阅读全文
posted @ 2022-05-21 21:30 廖一头雾水 阅读(3) 评论(0) 推荐(0) 编辑
摘要: task1 1 task1 2 task1 3 task1 4 task2 task3 task4 task5 阅读全文
posted @ 2022-05-17 15:24 廖一头雾水 阅读(15) 评论(1) 推荐(0) 编辑
摘要: task1 task2 1 task2 2 task2 3 task3 task4 task5 task6 task7\ 阅读全文
posted @ 2022-05-09 21:04 廖一头雾水 阅读(7) 评论(0) 推荐(0) 编辑
摘要: task1 task2 task3 task4 task5 阅读全文
posted @ 2022-04-25 18:53 廖一头雾水 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task1 task2 task3 task4 task5 task6 task7 总结 1. ’ ’.join():扩号里是需要被放在一起的字符串,引号中是字符串间的分割符号 2.for遍历列表,通过列表推导式得到新列表 .title()将字符串转成title类型 3. .split():将单词分 阅读全文
posted @ 2022-04-10 12:03 廖一头雾水 阅读(23) 评论(1) 推荐(0) 编辑
摘要: test 1_1 test 1_2 test1_3 test 2_1 test 2_2 test 3 test 4 test 5_1 test 5_2 test 6 test 7 总结 1.print 函数用于输出的几种用法: 用于输出单个字符串或单个变量 用于输出多个数据项 用逗号分隔 用户混合字 阅读全文
posted @ 2022-03-27 16:49 廖一头雾水 阅读(7) 评论(1) 推荐(0) 编辑
摘要: test 1_1 test 1_2 test1_3 test 2_1 test 2_2 test 3 test 4 test 5_1 test 5_2 test 6 test 7 总结 1.print 函数用于输出的几种用法: 用于输出单个字符串或单个变量 用于输出多个数据项 用逗号分隔 用户混合字 阅读全文
posted @ 2022-03-27 16:47 廖一头雾水 阅读(11) 评论(1) 推荐(0) 编辑