读取 7 个数(1—50)的整数值,每读取一个值,程序打印出该值个数的*。
n = 1 while n <= 7: a = int(input('input a number:')) while a < 1 or a > 50: a = int(input('input a number:')) print(a * '*') n += 1