摘要: 1、 思路是将数字转换为字符串进行倒置处理然后再转换为数字,注意转置后数值是否超出范围即可 beat 85%, 贴上代码: class Solution(object): def reverse(self, x): """ :type x: int :rtype: int """ _x = str( 阅读全文
posted @ 2020-03-23 10:57 HorribleMe 阅读(157) 评论(0) 推荐(0) 编辑