n = int(input('please enter a number:'))
m = int(input("How many numbers do you want?"))
#随机取数的函数
def wow(n, m):
global list0
list0 = []
if m <= n and m >= 1:
i = 0
while i < m:
list0.append(random.randint(1, n))
i += 1
print(list0)
else:
m = int(input("The number should <=n and >=1: "))
wow(n, m)
wow(n, m)
list1 = list(set(list0))#不懂为啥自己就排序了。。。
print(list1)