This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import pandas as pd | |
import multiprocessing | |
import numpy as np | |
import time | |
import os | |
print('main...') # 这个输出为何会打印了N次? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import multiprocessing | |
import numpy as np | |
import time | |
import os | |
print('main...') # 这个输出为何会打印了N次? | |
def func(f, lock, i): | |
sleeptime = round(np.random.rand() / 10, 4) |