Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
另一个方向更复杂,但尝试 这个ActiveState 配方。
通常基数转换不区分大小写。我不确定如何完全扩展它以做出这种区分,但是这个食谱应该给你一个开始。
The other direction is more complicated, but try this ActiveState recipe.
Normally base conversions make no distinction between cases. I'm not sure how to completely extend this to make that distinction, but the recipe should give you a start.
您可以继承数字。数字:
发现另一个错误。将其更改为工厂函数。现在可以处理一般情况了。
You may inherit numbers.Number:
Found another bug. Change it to a factory function. Now may handle general situation.