@anonymous/

IllegalVivaciousSable

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5079092575853557","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IGRhdGV0aW1lCmZyb20gZGVjaW1hbCBpbXBvcnQgRGVjaW1hbAoKYXZnX2hvdXJseV90ZW1wPSBbKGRhdGV0aW1lLnRpbWUoMTEsIDApLCBkYXRldGltZS50aW1lKDEyLCAwKSwgRGVjaW1hbCgnMjIuOTAyMjExMjIxMTIyMTEyMicpKSwgKGRhdGV0aW1lLnRpbWUoMTIsIDApLCBkYXRldGltZS50aW1lKDEzLCAwKSwgRGVjaW1hbCgnMjIuNjEyMjU2OTMwODg2MzcyNScpKSwgKGRhdGV0aW1lLnRpbWUoMTMsIDApLCBkYXRldGltZS50aW1lKDE0LCAwKSwgRGVjaW1hbCgnMjIuODUwOTM0NjExMDQ4NDc4MCcpKSwgKGRhdGV0aW1lLnRpbWUoMTQsIDApLCBkYXRldGltZS50aW1lKDE1LCAwKSwgRGVjaW1hbCgnMjMuMzc1ODExNzczNTI4MzA5MCcpKSwgKGRhdGV0aW1lLnRpbWUoMTUsIDApLCBkYXRldGltZS50aW1lKDE2LCAwKSwgRGVjaW1hbCgnMjQuMzA4MTIyOTI2MDkzNTE0MycpKSwgKGRhdGV0aW1lLnRpbWUoMTYsIDApLCBkYXRldGltZS50aW1lKDE3LCAwKSwgRGVjaW1hbCgnMjQuMjA0MzE3MjEwMzQ4NzA2NCcpKSwgKGRhdGV0aW1lLnRpbWUoMTcsIDApLCBkYXRldGltZS50aW1lKDE4LCAwKSwgRGVjaW1hbCgnMjMuOTMzNDcxMzE2MDg1NDg5MycpKSwgKGRhdGV0aW1lLnRpbWUoMTgsIDApLCBkYXRldGltZS50aW1lKDE5LCAwKSwgRGVjaW1hbCgnMjQuMDM2MDQ2NTI5MDgwNjc1NCcpKSwgKGRhdGV0aW1lLnRpbWUoMTksIDApLCBkYXRldGltZS50aW1lKDIwLCAwKSwgRGVjaW1hbCgnMjQuMjA4NzE4MTk4ODc0Mjk2NCcpKSwgKGRhdGV0aW1lLnRpbWUoMjAsIDApLCBkYXRldGltZS50aW1lKDIxLCAwKSwgRGVjaW1hbCgnMjQuMzA3OTU4MDgzODMyMzM1MycpKSwgKGRhdGV0aW1lLnRpbWUoMjEsIDApLCBkYXRldGltZS50aW1lKDIyLCAwKSwgRGVjaW1hbCgnMjQuMjU5OTY4NTg2Mzg3NDM0NicpKSwgKGRhdGV0aW1lLnRpbWUoMjIsIDApLCBkYXRldGltZS50aW1lKDIzLCAwKSwgRGVjaW1hbCgnMjQuNzc2NTM3NzA5NDk3MjA2NycpKV0KcGxvdF9hdmdfdGVtcCA9IFtdCnBsb3RfaG91cnNfaW50ZXJ2YWwgPSBbXQpmb3IgcmVhZGluZyBpbiBhdmdfaG91cmx5X3RlbXA6CiAgICBwbG90X2F2Z190ZW1wLmFwcGVuZChzdHIocm91bmQocmVhZGluZ1syXSwxKSkpCiAgICBwbG90X2hvdXJzX2ludGVydmFsLmFwcGVuZChyZWFkaW5nWzBdLnN0cmZ0aW1lKCIlSCIpICsgIi0iICsgcmVhZGluZ1sxXS5zdHJmdGltZSgiJUgiKSkKICAgIHByaW50KCJNZWQgJXMgaW4gJXMgamUgYmlsYSBwb3ZwcmXEjW5hIHRlbXBlcmF0dXJhICVzIHN0b3BpbmogQy4iICUgKHJlYWRpbmdbMF0uc3RyZnRpbWUoIiVIIiksIHJlYWRpbmdbMV0uc3RyZnRpbWUoIiVIIiksIHJvdW5kKHJlYWRpbmdbMl0sMSkpKQpwcmludChwbG90X2F2Z190ZW1wKQpwcmludChwbG90X2hvdXJzX2ludGVydmFsKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
import datetime
from decimal import Decimal

avg_hourly_temp= [(datetime.time(11, 0), datetime.time(12, 0), Decimal('22.9022112211221122')), (datetime.time(12, 0), datetime.time(13, 0), Decimal('22.6122569308863725')), (datetime.time(13, 0), datetime.time(14, 0), Decimal('22.8509346110484780')), (datetime.time(14, 0), datetime.time(15, 0), Decimal('23.3758117735283090')), (datetime.time(15, 0), datetime.time(16, 0), Decimal('24.3081229260935143')), (datetime.time(16, 0), datetime.time(17, 0), Decimal('24.2043172103487064')), (datetime.time(17, 0), datetime.time(18, 0), Decimal('23.9334713160854893')), (datetime.time(18, 0), datetime.time(19, 0), Decimal('24.0360465290806754')), (datetime.time(19, 0), datetime.time(20, 0), Decimal('24.2087181988742964')), (datetime.time(20, 0), datetime.time(21, 0), Decimal('24.3079580838323353')), (datetime.time(21, 0), datetime.time(22, 0), Decimal('24.2599685863874346')), (datetime.time(22, 0), datetime.time(23, 0), Decimal('24.7765377094972067'))]
plot_avg_temp = []
plot_hours_interval = []
for reading in avg_hourly_temp:
    plot_avg_temp.append(str(round(reading[2],1)))
    plot_hours_interval.append(reading[0].strftime("%H") + "-" + reading[1].strftime("%H"))
    print("Med %s in %s je bila povprečna temperatura %s stopinj C." % (reading[0].strftime("%H"), reading[1].strftime("%H"), round(reading[2],1)))
print(plot_avg_temp)
print(plot_hours_interval)