同分号一样,冒号也可以连接两个分句,此时第二个句子通常是对第一个句子进行解释。值得注意的一点是,冒号后面的句子首字母不需要大写,但如果冒号后面跟着两个或两个以上的句子,则句子首字母要大写,比如:He made three points: First, the company was losing over a million dollars each month. Second, the stock price was lower than it had ever been. Third, no banks were willing to loan the company any more money.
一般来说,在正式写作中,你不会使用像这样的斜杠,而应该用单词or。例:It would be nice to think this tip–off enabled him to avoid this fate but I fear his life was lost along with those missing hyphens.’。
英语中也有和汉语类似的“破折号”,我们称为 Em dash,它的长度等于大写字母M,主要用于将特定的概念从一个句子的主要从句中分离出来,或者分隔一个插入的想法或从句,比如:But such shortcomings—and South Africa’s failings since his retirement from active politics—pale into insignificance when set against the magnitude of his overall achievement.
例如:person = {“name”: “John”, “age”: 30}、numbers = {1, 2, 3}、for i in range:这些标点符号在Python中有特定的使用规则,需要根据语法要求进行正确的使用。
At that time there were two important things which were worth mentioning: one was the practical knowledge of the Egyptian workers in metals, pottery and dyes;