擅长:python、mysql、java
<p>您需要正确缩进:</p>
<pre><code>def CreateEvent(str):
"This prints a passed string into this function"
...
</code></pre>
<p>…这应该是一个三重引号的字符串<a href="http://www.python.org/dev/peps/pep-0008/#documentation-strings" rel="nofollow">as per PEP8</a></p>
<p>…不要在行尾加分号</p>