会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
Think twice, code once.
首页
新随笔
管理
2025年4月10日
[字符串运算]字符串除法
摘要: 大数相除求得商和余数 def divide_big_numbers(dividend: str, divisor: str): if divisor == "0": raise ValueError("Divisor cannot be zero.") # 判断结果符号 negative = Fal
阅读全文
posted @ 2025-04-10 14:59 Duancf
阅读(58)
评论(0)
推荐(0)