you can do this in one line by:
a = [0 for _ in range(10)]
参考: https://stackoverflow.com/questions/10712002/create-an-empty-list-in-python-with-certain-size