标签:str get def int for strong print star main
import timedef rw1():
for i in range(5):
print("任务一")
time.sleep(1)
def rw2():
for i in range(5):
print("任务二")
time.sleep(1)
def main():
t1 = threading.Thread(target=rw1)
t2 = threading.Thread(target=rw2)
t1.start()
t2.start()
if name == ‘main‘:
main()
标签:str get def int for strong print star main
原文地址:http://blog.51cto.com/3098885/2307817