线程分别调用两个函数,函数名后不能带括号

sp1=Thread(target=denglu)
sp2=Thread(target=sjkz)
sp2.start()
sp1.start()
sp2.join()
sp1.join()

如果带了括号,只能运行SP1.不能运行SP2

相关文章:

  • 2021-07-11
  • 2021-10-15
  • 2021-06-26
猜你喜欢
  • 2021-11-21
  • 2022-01-12
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-11-23
  • 2021-08-05
相关资源
相似解决方案