sort:
1 def function(date): 2 print(date['日期']) 3 return date['日期'] 4 5 rows.sort(key=function) 6 print(rows)
sorted
1 sorted(rows,key=lambda keys:keys['日期'])