def stock():
time = datetime.datetime.now() # ??????
now = time.strftime('%H:%M:%S')
data = ts.get_realtime_quotes(stock_symbol) # ??????
r1 = float(data['price'])
r2 = str(stock_symbol) + ' ?????? ' + str(r1)
content = now + '\n' + r2
itchat.send(content, toUserName='filehelper')
print(content)
# ?????????????
if r1 <= float(price_low):
itchat.send('????????', toUserName='filehelper')
print('????????')
elif r1 >= float(price_high):
itchat.send('????????', toUserName='filehelper')
print('????????')
else:
itchat.send('????', toUserName='filehelper')
print('????')
# ?????????
评论列表
文章目录