解决办法:
import subprocess
import pythoncom
import threading
def solve():
pythoncom.CoInitialize() # 最开始
"""
实现函数功能的代码
"""
# 例如
subprocess.run("calc.exe")
pythoncom.CoUninitialize() # 最后
if __name__ == '__main__':
t1 = threading.Thread(target=sovle)
t1.start()
t1.join()