# pcj
import time
#导入多任务模块
import threading
def sing():
for i in range(5):
print("---正在唱歌%i----"%i)
time.sleep(1)
def dance():
for i in range(5):
print("---正在跳舞%i---"% i)
time.sleep(1)
def main():
t1=threading.Thread(target=sing)
t2=threading.Thread(target=dance)
t1.start()
t2.start()
if __name__ == '__main__':
main()