Still, there's no escaping the nested sequence of if-else statements.
尽管如此,仍然无法避免使用嵌套的if - else序列语句。
Typically, these methods are written as one large if-else block or a Map lookup.
通常情况下,这些方法中的代码都有一个大型的if - else语句块或者一个map查找。
Listing 12 is divided into two sections, separated by an if-else conditional test.
清单12分成两个部分,由一个if - else条件测试分隔。
To simulate the else portion of an if-else scenario, negate the original condition.
要模拟if - else场景中的else部分,请否定原始条件即可。
The chain of if-else blocks gets messier, and slower, the more types you must handle.
If - else块链更加混乱和缓慢,您必须处理更多类型。
Today, applications generally use combinations of if-else statements to validate data.
目前,应用程序一般都使用if - else语句组合来验证数据。
A bunch of entangled if-else statements are trying to capture the business logic that has been identified for the application.
一堆互相缠绕的if - else语句正试图捕获已经为应用程序标识的业务逻辑。
Conditionals in Go have the same familiar if-else construction as those in c, but the condition need not be wrapped in parentheses.
Go语言当中的条件句与C当中所熟知的if - else构造一样,但条件不需要被打包在括号内。
If I can't make a living at painting, at least I can teach someone else to paint.
如果我不能以画画谋生的话,至少我能教别人画画。
You can use me as a last resort, and if nobody else volunteers, then I will do it.
你可以把我当作最后的选择,如果没有其他人自愿报名,那我就来做。
"He'll like it better if us talks o' somethin' else," said Dickon.
“如果我们谈点别的,他会更喜欢的。”狄肯说。
That's what we'll have to do if I can't think of anything else, but it'll really slow down the operation.
如果我想不出别的办法我们就得这么做,但这确实会减慢手术的速度。
If nothing else, showing that you've tried to solve the problem yourself before you take it farther makes it dear that you're not just a complainer.
如果没有其他的事情,在你进一步解决问题之前,表现出你已经尝试过自己解决问题,这会让人觉得你不是一个爱抱怨的人。
"If you'd prefer something else I'll gladly have it changed for you."—"No, this is great."
“如果您喜欢别的东西,我很乐意帮您调换一下。”—“不用,这个很好。”
It seemed as if the grandfather had done nothing else all his life than nurse lame people.
看上去就像奥西姆大叔这辈子除了护理瘸腿的人之外,什么也没干过。
If all else fails, keep calm and try logging on again!
如果所有办法都失败了,保持镇静并再次尝试登录!
If nothing else, she at least knew one thing was certain.
至少,她可以肯定一件事。
If nothing else, it will give you a good taste of what a hard life farming is.
它至少会让你更好地体会到种田的生活有多艰苦。
If nothing else showing that you've tried to solve the problem yourself before you take it further, make it clear that you're not just a complainer.
在你采取进一步措施之前,先表现出你已经尝试过自己解决问题,向人表明你不是一个只会抱怨的人。
If you don't, the battery will end up somewhere else.
如果你不这样做,电池就会被耗完。
If I don't buy this painting, no one else will buy it.
如果我不买这幅画,就没人会买了。
If you have to describe yourself to someone else, what will you say?
如果你必须向别人描述你自己,你会说些什么?
My mother was so touched by her gesture that she decided to go back to the store and give the cashier a five-dollar bill to keep on hand in case the same happened to someone else if they didn't have enough money for all of their groceries.
我母亲被她的举动感动了,她决定回到店里,给收银员一张五美元的钞票,让他放在手边,以防别人在没有足够的钱支付所购买的东西时发生同样的情况。
The rich man thought, "The man in the painting is me. If I don't buy this painting, nobody else will buy it."
富人想:“画中的人是我。如果我不买这幅画,就没有人会买了。”
Laughing at someone else may hurt their feelings even if you don't mean to, while laughing at yourself does not.
嘲笑别人可能会伤害他们的感情,即使你不是故意的,而嘲笑自己不会。
If a student is able to teach somebody else what he's learnt from textbooks, it shows he's understood it well.
如果一个学生能够把课本上学到的知识教授给别人,这说明他很了解这些知识。
Python variable names are case-sensitive, and you can't use certain Python keywords (such as if, else, while, def, or, and, not, in, and is, for starters) as variable names.
Python变量名是区分大小写的,并且您不能使用特定的 Python关键字(比如if、else、while、def、or、and、not、in和is 开始符)作为变量名。
At first, we started down a precarious path of putting "if... else" statements into our JSP.
起先,我们将“if…else”语句放入我们的JS p中,沿着一条不确定的路径开始。
In this case, you're using a simple if... Else block to see whether any value stored in the state is accessible via the random key.
在本例中,我们用一个简单的if . . .else块来判断在状态中保存的值是否可通过random键访问。
Since the if, Else if, and Else refinements are container transforms, these containers provide a means to group a set of desired mappings based on a known condition.
由于if、Else if和Else细分都是容器转换,这些容器提供了一种方法来根据已知的条件对所需的映射进行分组。
应用推荐