Score
0
Watch 244 Star 679 Fork 292

GVPfasiondog / hikyuuPythonMIT

Clone or download
temp.py
Copy Edit Web IDE Raw Normal History
fasiondog   steal task (continue) 2020-05-01
from hikyuu.interactive.interactive import *class TTT(Task):    def __init__(self, x):
fasiondog   steal group (continue) 2020-05-07
        super(TTT, self).__init__()
fasiondog   steal task (continue) 2020-05-01
        self.x = x        
fasiondog   steal group (continue) 2020-05-07
    def run(self):
fasiondog   steal task (continue) 2020-05-01
        print(self.x)
fasiondog   steal group (continue) 2020-05-07
       
fasiondog   steal task (continue) 2020-05-01
ts = []
fasiondog   steal group (continue) 2020-05-07
tg = TaskGroup(2)for i in range(5):    tg.addTask(TTT(i))
fasiondog   steal task (continue) 2020-05-01
tg.join()
Python
1
https://gitee.com/fasiondog/hikyuu.git
git@gitee.com:fasiondog/hikyuu.git
fasiondog
hikyuu
hikyuu
master

Help Search