货币转换I

A=input()
if A[0] in ['U','u']:
    RMB=(eval(A[3:]))*6.78
    print("RMB{:.2f}".format(RMB))
else:
    USD=(eval(A[3:]))/6.78
    print("USD{:.2f}".format(USD))

 

posted @ 2020-04-22 15:34  liuchun玲  阅读(104)  评论(0编辑  收藏  举报