在Python中,您可以使用多个方法很容易地创建字符串,其中包括使用单引号、双引号或更灵活的方式,即使用一组三个引号。
来源:互联网摘选当然,这三种操作符(单引号、双引号和反撇号)都有合法的用途,但是与英语中的例外一样,记住和掌握这些细微差异很令人头疼。
来源:互联网摘选例如,如果名称某部分包含句点、双引号、左括号或右括号,则需要使用括号和双引号来分隔该部分。
来源:provided by jukuu如果要在字符串中包括左引号或右引号,则必须用两个引号。
来源:provided by jukuu如果添加的注释包含空格,则请确保将注释加上引号。
来源:provided by jukuu在这里,把img[1-1000].png放在引号中,以避免shell解释它。
来源:互联网摘选书籍、剧或影片的名字用斜体(加下划线)用引号标明诗歌、篇小说或文章的标题。
来源:互联网摘选Any sentences taken directly from a source should appear inside quotation marks.
任何直接从原著摘抄下来的句子应该用“引号”标起来。
来源:互联网摘选Character strings and Date values are enclosed by single quotation marks.
字符串与时间数据在使用时通常被一对单引号标记着。
来源:互联网摘选Make sure you do not have any open quotation marks within the menu statement.
确保在menu语句内没有任何左引号。
来源:provided by jukuuCannot specify extra characters after a string enclosed in quotation marks.
附加符号[字符],特殊符号无法在引号中的字符串后面添加其他字符。
来源:互联网摘选' Fixed'is in quotation marks because the cure is not without its own problems.
“修复”放在引号当中,是因为解决方式也有它自己的问题。
来源:互联网摘选Quotation marks are required only if a qualified index or table name is specified.
仅当指定限定索引或表名时,才需要使用引号。
来源:provided by jukuuTo find and replace the quotation marks, click the replace tab.
要查找并替换引号,请单击“替换”选项卡。
来源:provided by jukuuBe sure to use quotation marks around multiple words if you want to search for complete phrases.
如果要搜索完整的短语,则务必使用引号将多个单词括起来。
来源:provided by jukuu
英语网 · 双语娱乐资讯
英语网 · 少儿英语故事

英语网 · 高中英语
英语网 · 双语娱乐资讯

英语网 · 四六级英语

英语网 · 中考英语