Exception ignored in: <module 'threading' from 'C:\Users\tangjiacheng\AppData\Local\Programs\Python\Python36\lib\threading.py'>
Traceback (most recent call last):
File "C:\Users\tangjiacheng\AppData\Local\Programs\Python\Python36\lib\threading.py", line 1288, in _shutdown
assert tlock is not None
AssertionError:
def _shutdown():
# Obscure: other threads may be waiting to join _main_thread. That's
# dubious, but some code does it. We can't wait for C code to release
# the main thread's tstate_lock - that won't happen until the interpreter
# is nearly dead. So we release it here. Note that just calling _stop()
# isn't enough: other threads may already be waiting on _tstate_lock.
tlock = _main_thread._tstate_lock
# The main thread isn't finished yet, so its thread state lock can't have
# been released.
assert tlock is not None #######此处为1288行
assert tlock.locked()
tlock.release()
_main_thread._stop()
t = _pickSomeNonDaemonThread()
while t:
t.join()
t = _pickSomeNonDaemonThread()