这道题怎么做啊

P5705 【深基2.例7】数字反转

Hardessnb @ 2024-10-11 15:55:40

这道题怎么做啊


by Hardessnb @ 2024-10-11 16:01:09

能用python3的方法吗?求求啦


by 杜都督 @ 2024-10-11 16:07:46

@Hardessnb

n = input()
print(float(n[::-1]))

by Hardessnb @ 2024-10-11 16:09:19

@杜都督 谢谢你


by luoxc20120515 @ 2024-10-26 21:16:42

@Hardessnb 输入后换成字符串在[::-1]就行了


by Hardessnb @ 2024-10-27 19:48:56

@luoxc20120515 ok


|