匯率兌換4.0

程序: def convert_currency(money,exchange):#兌換函數 out=money * exchange return out #匯率 usd_vs_rmb=6.77 currency=input(‘請輸入帶單位的貨幣金額:’)#人民幣CNY 美元USD #獲取貨幣單位 danwei=currency[-3:]#取末尾三位字符串 if danwei==‘CNY’:#輸
相關文章
相關標籤/搜索