python列表推导式简单应用

b = [a for a in range(10)]
print(b)

输出的结果[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]