avatar of 哈哈哈哈1 哈哈哈哈1
집중하다 사신
0
집중하다
0
수행원

실제 디스크가 한 번만 루프될 때 while true는 무엇을 의미합니까?

만든 날짜: 2021-01-16 17:12:02, 업데이트 날짜:
comments   1
hits   1085

다른 것들은 문제없고, 재검토가 정상이고, 리스크에서 한 번만 실행하면 끝납니다. 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 뒤에 있는 문자 길이의 횟수