摘要:
turtle的绘图窗体 turtle.setup(width , height startx , starty) 设置窗体大小及位置 turtle空间坐标体系 turtle.goto (x , y) import turtle turtle.goto ( 100 , 100) turtle.goto 阅读全文
posted @ 2019-11-12 14:24
LLLN
阅读(242)
评论(0)
推荐(0)
摘要:
import time #引入时间库 scale = 50 #执行次数 print("执行开始".center(scale//2,"-")) #<字符串>.center(scale//2,”-“):将字符串居中,并将“-”填充在字符串的两侧空白处,scale为控制字符串所占的字节数。 start = 阅读全文
posted @ 2019-11-12 10:46
LLLN
阅读(301)
评论(0)
推荐(0)
摘要:
1 ''' 2 新增功能: 3 优化:1.如果子弹碰到墙壁,让子弹消失 4 2.最多可以发射3颗子弹,不能一直发射 5 6 ''' 7 #导入pygame模块 8 import pygame,time,random 9 SCREEN_WIDTH=700 10 SCREEN_HEIGHT=500 11 阅读全文
posted @ 2019-11-12 10:26
LLLN
阅读(278)
评论(0)
推荐(0)

浙公网安备 33010602011771号