请教:如何验证自己的账户是否已经登录
我在别人的代码里看到这一段代码代码是每分钟运行的
def init(C):
C.run_time("f","1nSecond","2019-10-14 13:20:00")
def f(C):
acct = get_trade_detail_data(account, accountType, 'account')
if len(acct) < 1:
print(account, "未登录 请检查")
return
运行倒是正常的,但是
1、account参数没有赋值,
2、accountType也没有赋值,
3、检验的是 输入变量account, 而不是 返回的acct
看不懂,为啥没有赋值竟然也可以运行。
哪位大神请解答一下? |