清单4中的代码实现了一个简单的解析器,它假设我们使用冒号分隔好友ID和相关的通知,并使用分号分隔后续通知。
The code in listing 4 implements a crude parser that assumes that we use colons to separate buddy IDs from the associated note and semicolons to separate subsequent notes.
注意,用户标识符和密码是驱动程序属性,所以最前面是一个冒号,各属性之间以分号隔开,最终以分号结束。
Note that the user identifier and password are driver attributes and so are preceded by a colon, separated by a semicolon, and terminated by a semicolon.
根据语法网定义:破折号、分号和冒号都是有效的标点符号。
According to Grammar Net: "Dashes, semicolons and colons are potent punctuation."
应用推荐