分类
专题
标签
排序
用Python学数学(二)
用类构建对象 弹跳球程序 让小球动起来 xcor = 300 ycor = 300 xvel = 1 yvel = 1 def setup(): size(600,600) def draw(): global xcor,ycor,xvel,yvel background(0) xcor += xvel y...
Python学数学(一)
用几何学变换形状 translate(50,80) # 会将整个网格向右移动50像素,向下移动80像素 #将图形绕着原点进行旋转 rotate() #参数为弧度 rotate(radians(20)) #将角度转换为弧度 画一个圆圈图案 def...