But let me use the term "event" anyway, employing it with caution and as if in quotation marks.
但是无论如何我还是使用,“事件“,这个词,小心谨慎地使用它,带引号地使用。
If I do this and this but then I also put some other quotes inside, what's the computer potentially gonna think?
如果我双引号里面再套双引号,那电脑会怎么想呢?
So if I take away the quotation marks, all I have is the word with no indication that it's a concept.
所以如果我拿掉引号,剩下的就只是这个词而不指示一个概念了。
There's one more piece that we'd like to get out of that, and that is-- you may have been wondering, what's with the funky stuttering here of three double-quotes in a row. All right? And that is a specification.
但是你没有屏蔽这个函数的使用细节,在这里我们还想再讲一讲,那就是--你可能正在想,这里连续3个奇怪双引号,是干什么用的。
So all the quotation marks suggest human voice.
所以引号代笔了人类的声音。
So if I want to use a string as we'll call it which is a word or phrase generally, they always go between double quotes, David hence the quotes around David, and they are double quotes not single quotes intentionally.
当我们要表示单词啊,词组啊,句子啊等等这样的东西时,就会用到字符串,它们位于双引号之间,也就是这里双引号之间的,是双引号,不是单引号哦。
So if I scroll now to the right, I should see a comma after the closed quote and then what two values?
所以我滚动到右边,我应当看到一个逗号,在右引号的右边,然后这两个值是多少?
other people had solved that problem for me, and this thing between quotes, we'll start calling a string.
至于如何实现的别人已经解决了,这个在引号之间的东西叫字符串。
So again immediately on first glance, a little more arcane, there are some distracting details, these curly braces, the semicolon, the quotation marks.
第一眼扫过去,是不是有点神秘,有点繁琐,还有一些莫名其妙的大括号,分号和引号呢。
But the string, the sentence or the words that we're displaying on the screen, previously you clicked on a little white text field and typed it in, well now you're gonna do the same thing at the keyboard but you're gonna have to sandwich it in between double quotation marks.
这些你想输出到屏幕上的字符串啊,语句啊,单词啊,或者你事先,在白色输入框中敲进去的内容,现在你们需要用键盘做同样的事情,但是你们要写在,双引号之间。
And you might say, wait a minute, isn't that a string, and the answer's no, I didn't say it's a string by putting quotes around it And notice how the machine responds differently to it.
你会想,等等,这不是个字符串么?,答案是否定的,我没用引号包围它就意味着它不是字符串,请注意计算机对它给出了不同的反应。
Strings are captured in Python with an open quote and some sequence of characters followed by a closed quote.
字符串在Python中,是以一个开引号开始,然后后面是一系列的字符,以一个尾引号结束。
The quotes are around them to make that distinction.
他们前后的引号造成了这种不同。
And that's really a placeholder for the comma-separated list of values that I put after those quotes.
这其中还有一个逗号分开的有值的占位符,我把它放到了引号之后。
You can imagine having many lines of code where all of a sudden your closed quote is on the next line all the way on the left.
你可以想象一下,这有很多行代码,突然一个后引号,移到下一行最左边。
I stress it in particular because I know you're all going to get into this stage; you've got a problem set due in a couple of hours, you're still writing the code, you don't want to waste time, and I'm going to use quotes on "waste time", doing those extra things to do the defensive programming, you just want to get the darn thing done.
我特别强调了这一点,因为我知道你们都会慢慢成为程序员;,你在写代码过程中造成了一系列的错误,你还在写代码,你不想浪费时间,我想把“浪费时间“用引号圈起来,浪费时间来做因为防卫性程序设计,而带来的这些额外的事情,你只想赶紧把程序写完,这不是一个好习惯,因为当你做完回头。
Now this is what Derrida is deliberately struggling with in this first paragraph: an "event" , if this loaded word did not entail a meaning thought to reduce or to suspect.
这就是德里达,在第一段着力解决的问题:,一个事件,加引号的,…,如果这个词的意思没有,减少或怀疑的意图。
Sometimes you need to escape a single quote as we'll see.
比如用单引号隔开。
I see. Because I've got a quote in a quote.
一个引号所以有个语法错误。
So the double quote says here comes the input.
双引号代表在这里填上想要输入的东西。
Where x and y are floats.
我需要很多个引号,好。
Sometimes you need to escape a double quote.
有时候是双引号。
Notice the quotes around it.
注意两遍的引号。
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“
Someone-- or someone had to implement, had to write a tool called printf that itself takes input between quotes and produces as output some characters on the screen.
需要有人去实现,这个printf函数,以双引号间的信息为输入,输出相应字母到屏幕上。
For some reason I had this backslash N, a close quote, parenthesis, semicolon, close curly brace.
由于某些必要原因,我们还得加上\n,后引号,圆括号,分号,后大括号。
Notice I close the quotes after I'm putting a new line-- after I'm putting this new line, name but then to the right hand side is comma name.
注意反斜杠n后面加上后引号-,后引号,再右边就是逗号。
Well, before I just hardcoded a string inside of printf's double quotes.
在printf的双引号之间写死一个,字符串之前。
Now I'm putting count in double quotes, not to make it a string, but to say, this is count generically. It could be counting one by one through the integers, it could also be taking a collection of data and going through them one by one. It could be doing counting in some other mechanism.
现在我把count用双引号标起来,不是说把它命名为一个字符串,而是说,这是一个通用的计数器,它可能是每一次减1的整数,也可能是拿一个集合的数据然后,一个一个的访问它们,也可能是以某种机制来计数。
应用推荐