0
您好我過去那種忘記最後甩從終端文本我記得已經做過清理出在終端犯規最後打印的文本似乎工作,我現在怎麼做結算沖洗標準輸出
def main():
print 'starting...'
baseURL = 'https://api.thingspeak.com/update?api_key=%s' % myAPI
print baseURL
while True:
try:
RHW, TW, TWF = getSensorData()
# LT = RCtime(RCpin)
f = urllib2.urlopen(baseURL +
"&field1=%s&field2=%s&field3=%s" % (TW, TWF, RHW))
sys.stdout.flush()
sys.stdout.write("Celcius: %s , Farenheit: %s , Humidity: %s "% (TW, TWF, RHW))
f.close()
sleep(int(myDelay))
except:
print 'exiting.'
break
誰能請通過一些光線?