在复现Meta-SR的过程中,发现如果嵌套多个for 循环会使速度过慢.这是下面实验得出的结论: import time t1 = time.time() a = range(3000) b = range(3000) c = [[i,j] for i in a for j in b] t2 = time.time() print('生成式%',str(t2-t1)) t3 = time.time() ret = [] for i in range(3000): for j in range(3
logging example Level When it's used Numeric value DEBUG Detailed information, typically of interest only when diagnosing problems. 10 INFO Confirmation that things are working as expected. 20 WARNING An indication that something unexpected happened,