python webpy 错误的原因 token Error: EOF in multi-line statement

 
 

2011-09-02 22:16 

               一般出现这种情况是括号或者引号等不匹配造成的。

 

webpy中,模板html里面可以写Python代码,但要用$开始。但如果网页代码本来就有$符号(JavaScript或者正则表达式),我们需要对其进行转意。用$$代替$

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注