According to urllib.request
's source here , here and here , no, it isn't. 据urllib.request
的源在这里 , 这里和这里 ,不,它不是。
In general, Python is not thread safe, so unless explicitly stated that a module is, you should assume it isn't. 一般来说,Python 不是线程安全的,所以除非明确声明一个模块,否则你应该假设它不是。