# coding=utf-8
"""题目:利用递归函数调用方式,将所输入的5个字符,以相反顺序打印出来"""
charNum = []
def getChar():
for i in range(5):
x = input("请输入字符")
charNum.append(x)
def outPut(num, len):
if len == 0:
return
else:
print(num[len - 1])
len -= 1
outPut(num, len )
if __name__ == '__main__':
getChar()
length = len(charNum)
outPut(charNum, length)
# 人生苦短,我用Python