1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
| from functools import reduce
datas = [ { "date": "22日星期四", "sunrise": "06:17", "high": "高温 17.0℃", "low": "低温 1.0℃", "sunset": "18:27", "aqi": 98, "fx": "西南风", "fl": "<3级", "type": "晴", "notice": "愿你拥有比阳光明媚的心情" }, { "date": "23日星期五", "sunrise": "06:16", "high": "高温 18.0℃", "low": "低温 5.0℃", "sunset": "18:28", "aqi": 118, "fx": "无持续风向", "fl": "<3级", "type": "多云", "notice": "阴晴之间,谨防紫外线侵扰" }, { "date": "24日星期六", "sunrise": "06:14", "high": "高温 21.0℃", "low": "低温 7.0℃", "sunset": "18:29", "aqi": 52, "fx": "西南风", "fl": "<3级", "type": "晴", "notice": "愿你拥有比阳光明媚的心情" }, { "date": "25日星期日", "sunrise": "06:13", "high": "高温 22.0℃", "low": "低温 7.0℃", "sunset": "18:30", "aqi": 71, "fx": "西南风", "fl": "<3级", "type": "晴", "notice": "愿你拥有比阳光明媚的心情" }, { "date": "26日星期一", "sunrise": "06:11", "high": "高温 21.0℃", "low": "低温 8.0℃", "sunset": "18:31", "aqi": 97, "fx": "西南风", "fl": "<3级", "type": "多云", "notice": "阴晴之间,谨防紫外线侵扰" } ]
def add(x): return x + 'Z'
def sum(x, y): return x + y
|