1866: 三位数反转
摘要:解题思路:这题有多行输入,可能会造成错误注意事项:参考代码:while True: try: a = list(input()) b = a[::-1] ……
1866: 三位数反转
摘要:解题思路:切片注意事项:参考代码:while True: try: a = input() print(a[::-1]) except: brea……
三位数反转-题解(Python代码)
摘要:这道题可以通过取巧的方式来解答
直接当做字符串来反转即可
也不用考虑100反转后要输出001的问题
代码如下:
```python
n = str(input())
while 1:
……
1866: 三位数反转
摘要:解题思路:注意事项:参考代码:while True: try: a = int(input()) b = a // 100 s = (a - b * 1……
1866: 三位数反转(Python)
摘要:解题思路:注意事项:参考代码:while True:
try:
n = input()
m = n[::-1]
 
三位数反转-题解(Python代码) 三行、两行、一行的写法
摘要:#三行代码
这道题对于Python来说还是很友好的,由用户输入一个数字,然后通过切片的方式进行反转,直接输出就好了。
```python
while True:
num = inp……
1866: 三位数反转
摘要:解题思路:注意事项:参考代码:while True:
try:
n = input()
print(n[::-1])
except:
&nb