当前位置:首页 > 外汇 > 正文

新加坡元对人民币汇率换算器

新加坡元对人民币汇率换算器

以下是一个简单的新加坡元(SGD)对人民币(CNY)的汇率换算器示例:1. 假设当前汇率为1 SGD = 5.00 CNY。2. 用户输入他们想要换算的新加坡元金额。`...

以下是一个简单的新加坡元(SGD)对人民币(CNY)的汇率换算器示例:

1. 假设当前汇率为1 SGD = 5.00 CNY。

2. 用户输入他们想要换算的新加坡元金额。

```python

汇率

sgd_to_cny_rate = 5.00

def sgd_to_cny(sgd_amount):

return sgd_amount sgd_to_cny_rate

用户输入

sgd_amount = float(input("请输入新加坡元金额: "))

换算结果

cny_amount = sgd_to_cny(sgd_amount)

输出结果

print(f"{sgd_amount

最新文章

随机文章