任务要求:0-9十个数字,能组成多少个两位数
知识点:嵌套for循环
参考答案:
# coding=utf-8
"""
Author: 笨笨
Date: 2020-12-26
"""
numList = []
count = 0
for i in range(1, 10):
for j in range(0, 10):
num = i * 10 + j
numList.append(num)
count += 1
print(count)
print(numList)