2025年10月26日

摘要: A:3726. 移除十进制表示中的所有零简单题,转str后去掉所有0。 1 class Solution: 2 def removeZeros(self, n: int) -> int: 3 s=str(n) 4 res="" 5 for c in s: 6 if c!='0': 7 res+=c 阅读全文
posted @ 2025-10-26 14:36 greenofyu 阅读(6) 评论(0) 推荐(0)