发布时间:2019-08-26 07:20:06编辑:auto阅读(2177)
By Dolphin , 20150730
Title :
编写一个程序,获取用户输入的一条信息,然后将其倒序输出。
Code:
# Reverse Word
# By Dolphin,20150730
#
word = input("Please Enter a word :")
# creat a jumble word
jumble = ""
position = len(word) - 1
while word and position != -1 :
jumble += word[position]
position -= 1
print(jumble)
input("\n Enter the any key to exit !")
上一篇: Python 批量下载图片示例
下一篇: python 获取Linux主机名和IP
51305
50755
41353
38161
32635
29532
28378
23252
23220
21544
1617°
2352°
1955°
1897°
2229°
1938°
2627°
4406°
4244°
3017°