- 绘制柱状图1
????????????
- 2023-9-19 22:20:13 @
def rect(x, y, w, h):
jump(x, y)
for i in range(2):
forward(w)
right(-90)
forward(h)
right(-90)
temps = [22, 19, 22, 21, 25, 27, 30]
# rect(100, 100, 20, 100)
# rect(100 + 20, 100, 20, 80)
def forecast1(temps):
x = 0
y = 0
w = 20
for i in range(len(temps)):
temp = temps[i]
rect(x, y, w, temp)
x = x + w
0 条评论
目前还没有评论...
信息
- ID
- 126
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 6
- 标签
- 递交数
- 825
- 已通过
- 253
- 上传者