【发布时间】:2012-04-17 21:32:32
【问题描述】:
我有这个文件:
# blah blah blah DO NOT REPLACE blah blah
blah blah blah
blah blah REPLACE # comment comment
REPLACE blah blah
cmets 以“#”开头,我想替换注释中没有的关键字。
我正在使用python,我该怎么做?
【问题讨论】:
-
你的代码在哪里?
-
str="Boy, am I ever glad that I can use '#' in strings!"