发布网友 发布时间:2022-04-23 12:42
共1个回答
热心网友 时间:2022-04-18 04:46
import threading
import time
class A():
aa = ""
class tt(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run(self):
while True:
a.aa = raw_input('enter:')
if a.aa=='Q':
break
def main():
my_t = tt()
my_t.start()
while True:
if a.aa=="A":
continue
elif a.aa=="Q":
break
else:
print('hello',a.aa)
time.sleep(1)
a = A()
main()