for _ in range(5): print(_)
0 1 2 3 4
创建一个值都为0的两行八列的二维列表
dp=[[0]*8 for _ in range(2)] print(dp)
[[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]
_ 丢弃变量(python)
原文:https://www.cnblogs.com/BeautifulWater/p/14800409.html