import requests,os,time,sys\nsys.stdout.reconfigure(encoding='utf-8')\nurl="https://irs.imoe.xyz/stock"\ndelay=5\nos.system('clear')\nwhile True:\n\tresponse=requests.get(url)\n\tresponse.raise_for_status()\n\tdata=response.json()\n\tfirst_item=data[0]\n\tprice=first_item.get("price")\n\tos.system('clear')\n\tprint()\n\tprint(price)\n\ttime.sleep(delay)


原文地址: https://www.cveoy.top/t/topic/pDFs 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录