JZ17 打印从1到最大的n位数
打印从1到最大的n位数
https://www.nowcoder.com/practice/4436c93e568c48f6b28ff436173b997f?tpId=265&rp=1&ru=%2Fexam%2Foj%2Fta&qru=%2Fexam%2Foj%2Fta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D13&difficulty=&judgeStatus=&tags=&title=&gioEnter=menu
编程打卡第三天:
def printNumbers(self , n: int) -> List[int]:
# write code here
result = []
n_max = 10**n
for i in range(1,n_max):
result.append(i)
return result