Thu*_*G R 5 smalltalk pharo
Pharo 有什么方法可以将数字转换为单词。例如:1200 = 一千二百而已。
实施起来并不难,只是想知道。
Ste*_*out 5
Integer>>asWords 会这样做。
Integer>>asWords
1200 asWords返回'one thousand, two hundred'。
1200 asWords
'one thousand, two hundred'
我通过使用 Pharo 的 Finder 工具搜索“千”找到了它。
归档时间:
12 年 前
查看次数:
161 次
最近记录: