-
20181210Python 自动化笔试题,挑战你的知识库
2020-07-24 10:55if name == 'main':
num = int(input('input a number:'))
newLi = []
li = [x for x in range(1,num,2)]
if num % 2 != 0:
newLi = li + [num] +li[::-1]
else:
newLi = li + li[::-1]
print(newLi)
for i in newLi:
print(i*'*')