class cnumber:
cdict = {
}
gdict = {
}
xdict = {
}
def __init__(self):
self.cdict = {
1: u'', 2: u'拾', 3: u'佰', 4: u'仟'}
self.xdict = {
1: u'元', 2: u'万', 3: u'亿', 4: u'兆'} # 数字标识符
self.gdict = {
0: u'零', 1: u'壹', 2: u'贰', 3: u'叁', 4: u'肆', 5: u'伍', 6: u'陆', 7: u'柒', 8: u'捌', 9: u'玖'</
python实现小写金额转换成大写
最新推荐文章于 2024-03-17 11:45:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)