Ruby uses a slightly different approach than many other languages to match the end and the beginning of a string.
Ruby用一种和其他语言略有不同的做法去匹配字符串的开始和结束。
Make sure you have quotation marks at both the beginning and the end of quotes.
务必在引文的开始和结尾处加上引号。
In fact, some of these playwrights would start by writing the end of a play and work backward toward the beginning, just to make sure each event led logically from what had gone before.
事实上,一些剧作家会从剧本的结尾开始写起,然后倒着写剧本的开头,只是为了确保每一个事件都能从逻辑上与之前发生的事情联系起来。
"Begin at the beginning," the King said gravely, "and go on till you come to the end, and then stop."
“从头开始,一直读到末尾,然后停下来。”国王严肃地说。
The ancient Egyptians compared the rising of the sun to the beginning of life and the setting of the sun to the end of life.
古埃及人把太阳升起比作生命的开始,太阳落下比作生命的结束。
This means that if the weather is cold and stormy at the beginning of March, it will improve and be mild and gentle at the end of March.
这意味着,如果三月初天气寒冷且有暴风雨,那么三月末天气将会好转,变得温和。
This, he thought, could not be true, because the "Origin of Species" is one long argument from the beginning to the end, and has convinced many able men.
他认为这是不可能的,因为“物种起源”从始至终都处在的漫长争论中,并且说服了许多有能力的人。
Chinese New Year is a celebration marking the end of winter and the beginning of spring.
中国新年是一个标志着冬天结束和春天开始的庆祝节日。
My brother and I just couldn't help laughing from the beginning to the end.
我和哥哥自始至终都忍俊不禁。
That is, was an iteration end date established at the beginning of the iteration and was it the actual end of the iteration?
就是说,在迭代的开始它的终止日期就已经确定好了吗?这是迭代的实际的终止日期吗?
Some of your managers put the data and statistics right at the beginning, while others use appendices at the end.
有些经理们把数据和统计信息放在报告的最前面,而另外那些经理在报告的末尾用了附录。
They have qualms of conscience and that is the beginning of the end.
他们承受着良心的责问,而这正是终结的开始。
Mean time to failure is the average continuously operational period — i.e. the average period between the end of one failure and the beginning of the next.
平均失效到达时间是连续运行期间的平均值——也就是说,在结束一个失效和开始另外一个之间的平均周期。
For this reason, I like to include logging messages that mark the beginning and end of the modules.
由于这个原因,我喜欢记录标记模块开头和结尾的日志消息。
In the sample shown, there is a space character at the end of each line (except the last one), and one at the beginning of each of the last three lines.
在所示的示例中,在每行(最后一行除外)的末尾处有空格字符,最后三行的每一行开头有一个空格字符。
It appears the mind regards a doorway as something experts call an ‘event boundary’, signalling the end of one memory episode and the beginning of another.
我们大脑似乎会将门视为所谓的“事件边界”(专家术语),标志着一个记忆场景的结束和另一个新记忆场景的开始。
'All right,' said the Cat; and this time it vanished quite slowly, beginning with the end of the tail, and ending with the grin, which remained some time after the rest of it had gone.
“好,”猫答应着。这次它消失得非常慢,从尾巴尖开始消失,一直到最后看不见它的笑脸,那个笑脸在身体消失后好久,还停留了好一会儿。
It also outputs the system time at the beginning and end of execution.
它还在执行开始和结束时输出系统时间。
The researchers took blood samples and muscle biopsies at the beginning and end of the experiment.
研究人员在实验前后分别采样了参与者的血液和肌肉活组织。
The open and close brackets ([and]) mark the beginning and end of the code block, respectively.
开方括号和闭方括号([和])分别标志代码块的开始和结束。
The begin and end attributes denote the beginning and end of the matching term by means of number of characters.
开始和结束属性表示按照字符数匹配的术语的开始和结束部分。
On tackling climate change, the road is long and tortuous. The Copenhagen Conference is not the end, but a new beginning.
应对气候变化的道路曲折漫长,哥本哈根会议不是终点,而是一个新起点。
It didn't last beyond the end of the exams and the beginning of the Christmas holiday. She got involved with another (much older) man whom she later married.
我们的关系没有持续到考试结束也就是圣诞假期开始,她遇到了另外一个男人(比我大),也就是后来和她结婚的男人。
Snow reflects the color of the sky and, at the beginning or end of the day, often appears purple in color.
无论是在日出还是日落时分,积雪因为反射了天空的颜色,拍出来总是偏紫。
Make sure you thank them all with a big slide of sponsor logos at the beginning and end of the conference.
确保在会议开始和结束时都用一张大的幻灯片来鸣谢你的赞助商。
Finally, if the query word has an asterisk in the middle, require the query word to match at the beginning and end.
最后,如果查询词的中间有星号,则要求严格匹配查询词的开头和结尾。
Even more than the Japanese victories in the second world war, it announced the end of white supremacy over the continent and the beginning of the rise of the East.
甚至超过第二次世界大战打败日本人,奠边府宣告白人对亚洲大陆霸权统治的结束,东方崛起的开始。
You might wish to experiment with your test files, and move the end tags and beginning tags, to become familiar with the resulting error messages.
您可以在测试文件上进行实践,去掉开始和结束标记,熟悉因此显示的错误消息。
Unlike TTITLE and BTITLE, these are displayed only at the beginning and end of the report irrespective of the number of pages in the report.
与TTITLE和BTITLE不同,他们都只在报表的开始和结束处显示,而不考虑报表的页数。
Unlike TTITLE and BTITLE, these are displayed only at the beginning and end of the report irrespective of the number of pages in the report.
与TTITLE和BTITLE不同,他们都只在报表的开始和结束处显示,而不考虑报表的页数。
应用推荐