• It gets really kind of trippy if you wanna output a backslash, \ you can't just use the backslash, \\ you need to use backslash backslash because otherwise a single backslash is confused with the so called escape character.

    如果你想输出一个反斜杠,估计又得迷糊了,实际上,你不能直接用,而是要,否则一个\可能会被误认为,是转义字符。

    哈佛公开课 - 计算机科学课程节选

  • And just intuitively, when might you need to put a backslash in front of a double quote given the examples we've seen thus far?

    凭直觉来看,迄今为止,你们什么时候,会用到\“呢?,举个例子?

    哈佛公开课 - 计算机科学课程节选

  • 0 And we'll also see backslash 0 which is actually the special character that's used at the end of a string to say no more string after this point in memory.

    还有0,用于存储器中字符串末尾,表示在此之后就,没有字符了。

    哈佛公开课 - 计算机科学课程节选

  • n If you want a literal percent, it's %% and then backslash n.

    如果你想要一个百分比常量,就用%%,然后,反斜杠。

    哈佛公开课 - 计算机科学课程节选

  • But there're others, backslash T. Folks in the consulting world and finance world like to share files in Excel format or in Text format that looks like Excel.

    还有一些其他的转义字符,譬如\t,顾问界,财政界的,人们很喜欢用Excel文档,或类似于Excel的文本文件。

    哈佛公开课 - 计算机科学课程节选

  • I print F, I backslash N, just to pretty up the screen, ArgC I then iterate from, I equal zero up to Arg C; so Arg C is the convention.

    我键入printf,反斜杠n,来使屏幕变得美观点,然后i开始迭代,从i等于0增加到;,所以ArgC是一个约定。

    哈佛公开课 - 计算机科学课程节选

  • printf So thus far, the things I put David between quotes are just simple things like David or David backslash N, but what if I want to do call my self David in quotes, right?

    像我们前面提到的,我们把要显示的东西放在双引号之间,譬如,或,David反斜杠n,但是如果我自己的名字本来就叫,“David“

    哈佛公开课 - 计算机科学课程节选

  • A TSV file, tab-separated values uses the same thing but a tab character, if you wanna output an actual tab character, the result of hitting the tab key, \t you do use backslash T. That's so those kinds of files are made.

    而TSV文件,“制表符分隔“文件,顾名思义,就是用制表符来分隔每一列,如果你想输出一个真正的制表符,点击tab键,你也可以用,这就是那些文件的形成方式。

    哈佛公开课 - 计算机科学课程节选

  • So you have what are called escape characters like backslash N that is the shorthand notation of telling the computer put a new line character here.

    幸亏我们有一些类似反斜杠n的转义字符,这只是一种简化方式,用来告知电脑要在这新添一行。

    哈佛公开课 - 计算机科学课程节选

  • For some reason I had this backslash N, a close quote, parenthesis, semicolon, close curly brace.

    由于某些必要原因,我们还得加上\n,后引号,圆括号,分号,后大括号。

    哈佛公开课 - 计算机科学课程节选

  • - There's no backslash n -- that would have forced the cursor on to the next row.

    但没有“反斜杠n“,反斜杠n是用来使光标移到下一行的。

    哈佛公开课 - 计算机科学课程节选

  • This is what you typed into the white box in Scratch and anyone perhaps already familiar, the backslash N is the shorthand way of saying what?

    这也是你们在Scratch的白色输入框里要填入的东西,也许已经有人知道,反斜杠n代表某种简写方式吧?

    哈佛公开课 - 计算机科学课程节选

  • If n is greater than zero, I decided I would say, "You picked a positive number, backslash n," so put the cursor on the next line, else if n was not less than zero, I say, "You picked a negative number, backslash n."

    如果n比0大,我就决定来说:,“你选择了一个整数,反斜杠n“,所以你把光标,放在下一行,另外如果n不小于0,我说:,“你选择一个负数,反斜杠n“

    哈佛公开课 - 计算机科学课程节选

  • You can certainly hit Enter but as we saw-- seen that very quickly makes a mess of your code and such and so backslash N is new line.

    你也可以敲回车键-,但是会让你的代码看起来乱七八糟,反斜杠n就是换行符。

    哈佛公开课 - 计算机科学课程节选

  • I mean, you'll play with it in great-- with great delight this semester, you will see that backslash N is the standard in any text file for creating what we know as new line characters.

    我是指,这学期,你们会很高兴-,和它打交道,同时你们也会看到,在任何文本文件里,反斜杠n已经是,换行的代名词了。

    哈佛公开课 - 计算机科学课程节选

  • There's also this backslash R. Anyone know what backslash R is?

    这还有\r,谁知道\r代表什么?

    哈佛公开课 - 计算机科学课程节选

  • > >> David: Yeah, so I didn't have my "backslash n."

    >,【无法辨认的声音】,>>,大卫:是的,我没有加入“反斜杠,n“

    哈佛公开课 - 计算机科学课程节选

  • Let me go ahead and call print F. I'm going to say A equals A and then I need a percent D, backslash, comma A; so this is a little bit of -- more syntax than would be nice, %d but I'm just saying, literally, A equals percent D, and I'm plugging in the value of A for percent D.

    我们继续调用printf,我说明A等于,然后我需要%d,反斜杠n,逗号;,所以这个有点--偏向逻辑的,而不偏向美观的,但是我刚说了,字面上,A等于,我用%d插入了A的值。

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定