所有这样的字符串的集合形成一个代数。
但是,你会发现不存在这样的字符串。
文本是指“ Psycho ”这样的字符串和1960这样的整数。
The literals are strings like "Psycho" and integers like 1960.
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.
当我们要表示单词啊,词组啊,句子啊等等这样的东西时,就会用到字符串,它们位于双引号之间,也就是这里双引号之间的,是双引号,不是单引号哦。
You can't just take a quoted string back to back with another quoted string so you'd get some kind of compiler error.
你不能让一个引起来的字符串跟另一个引起来的字符串,背靠背,这样编译就会出错。
In which I said, you know, I didn't like the fact that things like plus are overloaded, because you can use plus to add strings, you can use plus to add numbers, you can use plus to add floats.
那个玩笑是这样的,你们懂得,我并不喜欢,加法被重载这样的事情,但是你可以用加法,来对字符串进行合并,你可以用加法来加数字。
应用推荐