171: 字符串的倒序(python)

简介: 171: 字符串的倒序(python)
题目描述

设计函数,实现字符串的倒序输出。

输入
输出
样例输入复制

Tomorrow

Yesterday

Today

Tomorrowisantherday!

Debug\ee.exe

ee-MicrosoftVisualC++-[ee.cpp]


样例输出复制

worromoT

yadretseY

yadoT

!yadrehtnasiworromoT

exe.ee\gubeD

]ppc.ee[-++ClausiVtfosorciM-ee

input_str =input()
print(input_str[::-1])
相关文章
|
18小时前
|
存储 索引 Python
Python数据结构——字符串
Python数据结构——字符串
8 0
|
1天前
|
机器学习/深度学习 Python
关于python字符串format的一些花式用法_format带加号
关于python字符串format的一些花式用法_format带加号
|
4天前
|
索引 Python Go
【python学习】字符串详解,面试必问公司的问题
【python学习】字符串详解,面试必问公司的问题
|
6天前
|
索引 Python
python字符串(str)
【5月更文挑战第8天】
10 3
|
6天前
|
Python
Python注意字符串和字节字面量
【5月更文挑战第7天】Python注意字符串和字节字面量
16 4
|
6天前
|
Python
【Python操作基础】——字符串
【Python操作基础】——字符串
|
6天前
|
Python
Python字符串和字节不要混淆str.format()和bytes.format()
【5月更文挑战第6天】Python字符串和字节不要混淆str.format()和bytes.format()
8 1
|
6天前
|
Python
Python字符串和字节使用正确的编码/解码
【5月更文挑战第6天】Python字符串和字节使用正确的编码/解码
9 2
|
6天前
|
存储 Python
python字符串和字节明确数据类型
【5月更文挑战第6天】python字符串和字节明确数据类型
11 2
|
6天前
|
Python
Python避免在字符串和字节之间混淆
【5月更文挑战第5天】Python避免在字符串和字节之间混淆
17 3