我尝试滚动网页的侧边栏(不是整页),但无法继续。
import pandas as pd
import datetime as dt
def main():
try:
Comm_Data = pd.read_excel(r"\path to read")
EO_Cat_Comm = pd.read_excel(r"\path to read")
Comm_Data = process_data(Comm_Data)
Comm_Data = check_date(Comm_Data)
except Exception as e:
print("Error in Code:", e)
def check_date(x):
current_date = x.iloc[0]['Alert_Date']
current_date.to_csv('002_currentdateprocessing.csv')
print(current_date)
now = dt.datetime.now().date()
if(now.weekday()==5 or now.weekday()==6):
print("Day is "+now.strftime("%A") + ".Code is not scheduled for " + now.strftime("%A") + ".Come back tomorrow!!")
sys.exit()
def process_data(x):
# some code here
return(x)