1
我有以下代碼:Plotdevice,將JSON值到變量
size(297,420)
weather = read("january_2016.json", dict=adict)
print "(in january 2016 the min temperature was %i)" % weather.MaxTemperature.min
r = "%i" %weather.MaxTemperature.min
nofill()
stroke(.1)
print r
oval(10,10,r,r)
,但我這裏有兩個問題:
1.當我想用橢圓形(10,10,r,r
)我出現以下錯誤:
DeviceError: Invalid coordinates (looking for ['Point', 'Size'], got ['Point', 'str', 'str'])
2.我怎麼能中心的橢圓形的錨
誰能幫米出去?在此先感謝
太棒了!非常感謝! – shirinmalina