expect在英语中是什么意思?

如题所述

expected在英语中是预料预期的意思,如果在JAVA编程中出现则表示在字符串中输入了换行符。编译器就会报错:Line nn: ';' expected 

处理方法:将字符串拆分为两个, 确保字符串中都没有新行, 并将它们与 + 连接起来就可以了。

expected    英[ɪkˈspektɪd]    美[ɪkˈspektɪd]    

adj.    预料的; 预期的;    

v.    预料; 预期; 预计; 等待; 期待; 盼望; 要求; 指望;    

[词典]    expect的过去分词和过去式;    

1、As expected, it rained. 

果不其然下了雨。

2、It may be that you will feel the exact opposite of what you expected. 

可能你的感觉将和你的期盼刚好相反。

3、Scientists have collected more data than expected. 

科学家已经收集到了比预期更多的数据。

扩展资料:

expect的用法

1、表示期待,期望,通常为及物动词,不要受汉语影响在其后误加介词for。如:

我们不能期望一夜之间就取得成功。

如:We should not expect success overnight.

2、后接动词时要用不定式,不用动名词。如:

I did not expect to find you here. 我没料到在这里碰到你



温馨提示:答案为网友推荐,仅供参考
相似回答