- 绘制柱状图4
vxvzdxsvxdzscvz
- 2023-9-23 11:27:46 @
from wonderLang import *
def rect(x, y, w, h): jump(x, y) for i in range(2): forward(w) right(-90) forward(h) right(-90)
def forecast(temps, space, base): x = 0 y = 0 w = 20 for i in range(len(temps)): temp = temps[i] rect(x, y, w, temp * base) x = x + w + space
temps = [-22, 19, 22, -1, -25, 27, 30]😕
0 条评论
目前还没有评论...
信息
- ID
- 129
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- 递交数
- 630
- 已通过
- 233
- 上传者