一些详细解释使用Java,我可以分割字符串,并给出一些详细的解释制作在Python字符串
String x = "a" + // First
"b" + // Second
"c"; // Third
// x = "abc"
我怎样才能使蟒蛇等价?
我可以拆分字符串,但我无法对此进行评论,就像我对Java所做的一样。
x = "a" \
"b" \
"c"
我需要此功能来解释正则表达式的用法。
Pattern p = Pattern.compile("rename_method\\(" + // ignore 'rename_method('
"\"([^\"]*)\"," + // find '"....",'
要注释的正则表达式,考虑're.VERBOSE'标志:http://docs.python.org/library /re.html#re.VERBOSE –