题解 | #统计618的销售额#
统计618的销售额
https://www.nowcoder.com/practice/b4594cc333b74ef69d34d9056274e044
panimport sys import pandas as pd df = pd.read_csv('Order.csv',sep=',') d1 = df[df['date']=='2022/6/18']['price'] print(d1.sum()) print(df['shop_name'].value_counts()) for line in sys.stdin: a = line.split() print(int(a[0]) + int(a[1]))
pandas的数学函数