我试过下面的代码,但不起作用,请帮忙
def table(n): for i in range(1,11): print(n*i) n = int(input("Enter the Number\n")) a = [] a.append(table(n)) print(a)