Hello
File1.py:
Thank you!
File1.py:
import File2
while True:
a = input()
if a == "start":
threading.Thread(target = File2.func()).start()
if a == "stop":
#stop function File2.funcFile2.py:def func():
while True:
#do stuffHow can i stop the running of func() in File2? I have no idea! I cannot pass a stop variable to func() because the variable are one time loaded at the beggining of the func() running.Thank you!
