update inx

This commit is contained in:
SiHuan 2020-04-02 21:48:59 +08:00
parent d5628dea7b
commit f7bbf6a36c

View file

@ -35,8 +35,11 @@ class Ans(StdAns):
def getMG(): def getMG():
req = requests.get("https://hq.sinajs.cn/etag.php?_=1584712625172&list=gb_$inx,gb_$ixic,gb_$dji").text.split(',') req = requests.get("https://hq.sinajs.cn/etag.php?_=1584712625172&list=gb_$inx,gb_$ixic,gb_$dji").text.split(';')
return req[2], req[29], req[56] inx = req[0].split(',')[2]
ixic = req[1].split(',')[2]
dji = req[2].split(',')[2]
return inx, ixic, dji
def emoji(p,n): def emoji(p,n):
n = float(n) n = float(n)