
Python
文章平均质量分 78
夜无霄
这个作者很懒,什么都没留下…
展开
-
Python项目实战——“飞机大战”
主文件: from plane_sprites import * import pygame class PlaneGame: """主游戏类""" grade = 0 def __init__(self): print("游戏初始化") # 创建游戏窗口对象 self.screen = pygame.display.set_mode(SCREEN_RECT.size) # 创建时钟对象 self原创 2020-10-30 14:32:35 · 914 阅读 · 0 评论 -
简单名片管理系统——Python
main主程序文件 import cards_tools while True: # 欢迎菜单 cards_tools.show_menu() action_str = input("请选择操作功能:") print("您选择的操作功能为【%s】" % action_str) # 1, 2, 3 名片操作 if action_str in ["1", "2", "3"]: # 新建名片 if action_str == "1":原创 2020-09-25 12:23:52 · 227 阅读 · 0 评论