成功的解决方案:
def ask_num():
num_list = []
# ask for a number (we will make it a string so we can add comma and /n)
num = input("Enter numbers: ")
# put the num in the list
num_list.append(num)
# seperate the numbers
num_list = num.split(r"\n")
# print the list
print(num_list)