赞
踩
美元与人民币转换
CurrencyStr=input("请输入带有符号的币种:")
if CurrencyStr[-1] in ['R','r']:
USD=eval(CurrencyStr[0:-1])/6.99
print("{:.2f}USD".format(USD))
elif CurrencyStr[-1] in ['U','u']:
RMB=eval(CurrencyStr[0:-1])*6.99
print("{:.2f}RMB".format(RMB))
else:
print("输入格式错误!")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。