![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
文章平均质量分 70
Mighttf
好好学习 天天向上
展开
-
简易的俄罗斯方块
简单的俄罗斯方块代码不完善,请见谅!!!!#* coding:utf-8 *from tkinter import *import randomimport timeimport tkinter.messagebox#俄罗斯方块界面的高度HEIGHT = 20#俄罗斯方块界面的宽度WIDTH = 10ACTIVE = 1PASSIVE = 0TRUE = 1FALSE = 0style = [[[(0,0),(0,1),(1,1),(2,1)],[(1,0)原创 2021-07-14 09:19:09 · 140 阅读 · 0 评论 -
没有界面的学生管理系统
学生管理系统class studentSys(object):def init(self):# 全局变量self.students = []“打印输入提示信息”students=[]def print_menu(self):# \t : 横向制表符print("=" * 50 + “\n\t\t学生管理系统1.00版本” + “\n\t\t1:添加学生信息” + “\n\t\t2:删除学生信息” + “\n\t\t3:修改学生信息” + “\n\t\t4:查找学生信息” + “原创 2021-07-14 09:22:13 · 113 阅读 · 0 评论 -
没有登录界面的学生信息管理系统2.0
学生信息管理系统import osfilename=‘student.txt’def main():while True:menm()choice=int(input(‘请选择:’))if choice in [0,1,2,3,4,5,6,7]:if choice ==0:answer=input(‘您确定要退出系统吗?’)if answer == ‘y’ or answer ==‘Y’:breakelse:continueelif choice ==1:insert()el原创 2021-07-14 09:24:05 · 130 阅读 · 0 评论 -
简易贪吃蛇
import sysimport randomimport pygame#全局定义SCREEN_X=600SCREEN_Y=600#蛇class Snake(object):def init(self):self.dirction =pygame.K_RIGHTself.body =[]for x in range(5):self.addnode()def addnode(self): left, top = (0, 0) if self.body:原创 2021-07-14 09:29:56 · 112 阅读 · 0 评论