摘要: 实例1:创建大雁类并定义飞行方法 class Geese: '''大雁类''' def __init__(self, beak, wing, claw): print("我是大雁类!我有以下特征:") print(beak) print(wing) print(claw) def fly(self, 阅读全文
posted @ 2022-12-03 11:33 21信计1朱美怡 阅读(44) 评论(0) 推荐(0)
摘要: import sys import pygame pygame.init() size = width,height = 3000,1000 screen = pygame.display.set_mode(size) color = (0, 0, 0) ball = pygame.image.lo 阅读全文
posted @ 2022-12-03 11:19 21信计1朱美怡 阅读(36) 评论(0) 推荐(0)