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)