• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Xujie_0528

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2020年9月25日

Python24-10_游戏开发: 坦克大战----面向对象分析项目需求
摘要: 面向对象分析项目需求 坦克大战游戏的需求 项目中有哪些类 类中有哪些方法 1. 坦克类 射击类 移动类 显示坦克的方法 2.子弹类 移动类 显示子弹的方法 3. 墙壁类 属性: 是否可以通过 4. 爆炸效果类 展示爆炸效果 5. 音效类 播放音乐 6. 主类 开始游戏 结束游戏 阅读全文
posted @ 2020-09-25 18:22 Xujie_0528 阅读(219) 评论(0) 推荐(0)
 
Python24-08_画图项目----清屏&颜色框
摘要: 清屏&颜色框 1 from tkinter import * 2 from tkinter.colorchooser import * 3 4 win_width = 900 5 win_height = 500 6 7 8 class Application(Frame): 9 10 def __ 阅读全文
posted @ 2020-09-25 17:31 Xujie_0528 阅读(304) 评论(0) 推荐(0)
 
Python24-07_画图项目----画笔&橡皮擦
摘要: 画笔&橡皮擦 1 from tkinter import * 2 3 win_width = 900 4 win_height = 500 5 6 7 class Application(Frame): 8 9 def __init__(self, master=None, bgcolor='#00 阅读全文
posted @ 2020-09-25 17:04 Xujie_0528 阅读(637) 评论(0) 推荐(0)
 
Python24-06_画图项目----箭头直线&矩形绘制
摘要: 箭头直线&矩形绘制 1 from tkinter import * 2 3 win_width = 900 4 win_height = 500 5 6 7 class Application(Frame): 8 9 def __init__(self, master=None, bgcolor=' 阅读全文
posted @ 2020-09-25 16:46 Xujie_0528 阅读(830) 评论(0) 推荐(0)
 
Python24-05_画图项目----绘制直线
摘要: 绘制直线 1 from tkinter import * 2 3 win_width = 900 4 win_height = 500 5 6 7 class Application(Frame): 8 9 def __init__(self, master=None, bgcolor='#0000 阅读全文
posted @ 2020-09-25 15:40 Xujie_0528 阅读(925) 评论(0) 推荐(0)
 
Python24-04_画图项目----界面实现
摘要: 画图项目-界面实现 1 from tkinter import * 2 3 win_width = 900 4 win_height = 500 5 6 7 class Application(Frame): 8 9 def __init__(self, master=None, bgcolor=' 阅读全文
posted @ 2020-09-25 11:18 Xujie_0528 阅读(142) 评论(0) 推荐(0)
 
Python24-03_记事本项目----将python模块打包成exe文件
摘要: 将python模块打包成exe文件 1. 安装pyinstaller模块 在pycharm中操作, file-->setting-->Project: xxx-->Project interpretor, 再点击+即可 2. 在pycharm的Terminal终端输入如下命令 pyinstaller 阅读全文
posted @ 2020-09-25 10:22 Xujie_0528 阅读(132) 评论(0) 推荐(0)
 
Python24-02_记事本项目----新建文件&背景色改变&快捷键功能
摘要: 新建文件&背景色改变&快捷键功能 1 from tkinter.filedialog import * 2 from tkinter.colorchooser import * 3 4 5 class Application(Frame): 6 def __init__(self, master=N 阅读全文
posted @ 2020-09-25 10:08 Xujie_0528 阅读(295) 评论(0) 推荐(0)
 
Python24-01_记事本项目----打开和保存修改文件的实现
摘要: 打开和保存修改文件的实现 1 from tkinter.filedialog import * 2 from tkinter.colorchooser import * 3 4 5 class Application(Frame): 6 def __init__(self, master=None) 阅读全文
posted @ 2020-09-25 08:19 Xujie_0528 阅读(518) 评论(0) 推荐(0)