ADD file via upload

master
hnu202109060208 2 years ago
parent 1bca31d4e8
commit ee9cf6a322

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 30 19:15:52 2022
@author: DELL
"""
import pandas as pd
df = pd.read_csv("contentt.csv", encoding=('gb2312'),names=["date","flightNum", "depTime", "arrTime", "price"])
df.head()
print(df)
while True:
print("***********************")
print('0...退出选择')
print('1...输入选择')
print("***********************")
menuId=eval(input("是否查询(输入数字):"))
if menuId==1:
riqi=input('请输入要查询的日期如2022-12-01')
df1=df[df.date==riqi]
print(df1)
elif menuId==0:
break
Loading…
Cancel
Save