This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 10 months ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
我想,以防万一其他三个答案不够明显,我应该告诉你你首先需要 def
@People 复制:
说真的,我们还能得到 1 个答案吗?我相信 3 个(如果加我的话 4 个)还不够
I thought, just in case the other three answers weren't obvious enough, I should tell you that you need def first
@People duplicating:
Seriously, could we get 1 more answer? I believe 3 (4 if you add me) isn't enough
在Python中,我们使用
def
关键字定义函数......就像in python, we define functions using the
def
keyword.. like您需要编写:
定义一个函数。
You need to write:
to define a function.
http://docs.python.org/release/ 3.0.1/tutorial/controlflow.html#defining-functions
您缺少 def 部分吗?
http://docs.python.org/release/3.0.1/tutorial/controlflow.html#defining-functions
Your missing the def part?