資源簡介
python初學者可以通過這個例子完成python的基礎內容學習
代碼片段和文件信息
#?-*-?coding:utf-8?-*-
import?pygame
import?time
def?main():
????#1.?創建窗口
????screen?=?pygame.display.set_mode((480852)032)
????#2.?創建一個背景圖片
????background?=?pygame.image.load(“./feiji/background.png“)
????while?True:
????????screen.blit(background?(00))
????????pygame.display.update()
????????time.sleep(0.01)
if?__name__?==?“__main__“:
????main()
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????386??2017-04-15?15:15??01-飛機大戰-創建窗口.py
?????文件?????????508??2017-04-15?15:47??02-飛機大戰-顯示玩家飛機.py
?????文件?????????557??2017-04-15?15:49??03-飛機大戰-控制玩家飛機左右移動.py
?????文件????????1324??2017-04-15?16:00??04-飛機大戰-控制玩家飛機左右移動-2.py
?????文件????????1654??2017-04-15?16:46??05-飛機大戰-控制飛機左右移動-3-面向對象.py
?????文件????????2275??2017-04-15?17:52??06-飛機大戰-玩家飛機發射子彈.py
?????文件????????3019??2017-04-16?14:37??07-顯示敵機.py
?????文件????????3323??2017-04-16?15:09??08-控制敵機左右移動.py
?????文件????????3533??2017-04-16?15:48??09-代碼優化:刪除越界的子彈.py
?????文件????????4219??2017-04-16?16:52??10-敵機發射子彈.py
?????文件????????3942??2017-04-16?17:14??11-代碼優化:抽取基類.py
?????目錄???????????0??2020-08-19?15:27??feiji\
?????文件????????6148??2017-04-15?14:54??feiji\.DS_Store
?????文件???????36714??2017-04-15?14:54??feiji\background.png
?????文件??????427573??2017-04-15?14:54??feiji\bg.png
?????文件????????2658??2017-04-15?14:54??feiji\bomb-1.gif
?????文件????????2067??2017-04-15?14:54??feiji\bomb-2.gif
?????文件????????5600??2017-04-15?14:54??feiji\bomb.png
?????文件????????8948??2017-04-15?14:54??feiji\btn_finish.png
?????文件?????????122??2017-04-15?14:54??feiji\bullet-1.gif
?????文件?????????151??2017-04-15?14:54??feiji\bullet-2.gif
?????文件?????????401??2017-04-15?14:54??feiji\bullet-3.gif
?????文件???????23131??2017-04-15?14:54??feiji\bullet.png
?????文件?????????490??2017-04-15?14:54??feiji\bullet1.png
?????文件?????????498??2017-04-15?14:54??feiji\bullet2.png
?????文件???????29625??2017-04-15?14:54??feiji\button_nor.png
?????文件???????28998??2017-04-15?14:54??feiji\button_p.png
?????文件????????1678??2017-04-15?14:54??feiji\enemy-1.gif
?????文件????????2829??2017-04-15?14:54??feiji\enemy-2.gif
?????文件???????13927??2017-04-15?14:54??feiji\enemy-3.gif
?????文件????????2970??2017-04-15?14:54??feiji\enemy0.png
............此處省略50個文件信息
- 上一篇:爬取百度圖片到本地(python代碼)
- 下一篇:scrapy 爬取圖片clj
評論
共有 條評論