defusd_to_kes(amount:float)->float:exchange_rate=85.67# 假设汇率为1USD=85.67KESreturnamount*exchange_rate amount=1296700kes_amount=usd_to_kes(amount)print(f"{amount}USD is{kes_amount}KES") 汇率获取代码 importrequestsimportjsondeffetch_exchange_rate(base:str,target:str)->float:url=f"https:...