Recently found a Python database connection is not thread-safe, the results of which making me wonder where all the variables of whether multi-threaded security issues, today finally found the right answer, that is the Python built-in types dict, list, tuple It is thread-safe.
Please refer to the official explanation: http://docs.python.org/glossary.html#term-global-interpreter-lock
Reference: https://blog.csdn.net/u010649766/article/details/79740873