gpt4 book ai didi

python - 我如何在 Python 中使用以 5 为基数的数字?

转载 作者:太空狗 更新时间:2023-10-30 02:50:30 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
convert integer to a string in a given numeric base in python

我想使用以 5 为基数的数字,或与此相关的任何其他非标准基数。

我发现 int('123', 5) 有效,但我需要反过来。

我应该编写自己的数字类来完成这个吗?

也许我只是想错了方向......

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com