柠檬班学员面试遇到的笔试题!!!
出招吧各位大佬!
柠檬班学员面试遇到的笔试题!!!
出招吧各位大佬!
if 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*'*')
欢迎来到testingpai.com!
注册 关于