内容目录(原文见公众号python宝或www.xmmup.com)
一、打断点二、代码调试三、界面小图标介绍四、控制台介绍
# 数字转换为大写人民币
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
numberList = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
integralUnit = ['元', '拾', '佰', '仟', '万', '拾', '佰', '仟', '亿', '拾', '佰', '仟']
fractionUnit = ['角', '分']
def solveF(f, res):
# print(res)
if int(f) == 0:
res.append("整")
else:
for i in range(len(f)):
if int(f[i]) != 0:
res.append(numberList[int(f[i])])
res.append(fractionUnit[int(i)])
return res
while True:
try:
a = input()
if '.' in a:
a = a.split('.')
else:
a = (a + '.00').split('.')
y =