2016 - 2024

感恩一路有你

python的replace用法 Substitute与replace的区别?

浏览量:2672 时间:2021-03-15 16:54:49 作者:admin

Substitute与replace的区别?

replace 和substitute都可作动词,但用法不一样,一般搭配是replace A with B 用B来代替Asubstitute A for B 用A来代替B (或者A substitute for B)二者应该可以互换使用,似乎replace用得更广一些。例句:1. In manufacturing, cheaper materials are constantly being substituted for the better and more expensive kind. 2. The government decided to replace coal with gas. 3. Nothing can substitute for the advice the doctor is able to give you.另外,substitute还可以是名词,意为代替品。 A is a substitute A是一个代替品

replace的用法和短语?

用在表达“更换,代替”的句子。

举例:

Please replace thelight bulb.

请更换那灯泡。

I hired Tom to replace Jimmy.

我聘用了汤姆去代替占美。

python的replace用法 replace固定搭配 replace的用法和短语例句

版权声明:本文内容由互联网用户自发贡献,本站不承担相关法律责任.如有侵权/违法内容,本站将立刻删除。