Type/to search
0
Follow
0
Followers
실제 디스크가 한 번만 루프될 때 while true는 무엇을 의미합니까?
Help
Created 2021-01-16 17:12:02  
 1
 1477

다른 것들은 문제없고, 재검토가 정상이고, 리스크에서 한 번만 실행하면 끝납니다.
import time
import json

params = {
"arrBasePrice": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1],
}

def process(index):
global params # 글로벌 변수를 정의합니다.
ticker = _C (e.GetTicker) # 가격 정보를 얻는다
def main():
global params

for i in range(len(exchanges)) :
params["acc"].append(_C(exchanges[i].GetAccount))
params["arrTick"].append(_C(exchanges[i].GetTicker))
exchanges[i].SetPrecision(params["arrPricePrecision"][i], params["arrAmountPrecision"][i])

for key in params :
if len(params[key]) < len(exchanges):
Log(len(params[key]), len(exchanges))
raise "params error!"

while True:
for i in range(len(exchanges)):
process(exchanges[i], i)
코드 프레임워크는 이렇게 생겼습니다. 디스크가 한번만 실행되고, 반복적으로 가져오지 않고, 실행되는 정확한 횟수는
arrBasePrice 뒤에 있는 문자 길이의 횟수

Related Recommendations
Comment
All comments (1)

    没有报错会重复执行,另外策略需要休眠时间

    6 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)