else 和other的不同用法及区别

来源:百度知道 编辑:UC知道 时间:2024/05/12 10:29:05
else 和other的不同用法及区别 谢谢

other可作形容词或代词,做形容词时,意思是“别的,其他”,泛指“其他的(人或物)”。

else 只修饰两类词
修饰 不定代词 如 someone / someplace/ anything来指代另外一个,而不特别指明哪一个。
如: I had nothing else to do.
修饰 wh- word。如what /who/where等
如: What else do I need to do
else多用于特殊疑问词后。
other主要修饰名词,放在名词前面。

else用在不定代词、疑问代词后
例:anything else
other是后加名词复数
区别是other后必须加东西
例what else do you want?
what other things do you want?

else是用在if后面.other我也不知道用在什么后面 反正other用到的很少

一般情况下if.....else....就能解决了 有的地方最后还要加上end if