例如,以英尺和英寸为例:我怎么能把其中的一个元素分解成这样的东西:
"the person is 5 feet 11 inches tall."feet {} inches tall.".format(list[1], list[1]) #I am aware taking the same index of list will give me 5-
如果用户希望为产品付费,则调用支付服务。服务必须同步返回成功或失败。此外,服务还必须保证使用目前的价格。Caller (App) -> Payment service -> Product service -> Payment service -> Caller (App)
如何将这种场景优化为异步通信