【发布时间】:2015-01-11 05:18:22
【问题描述】:
我试过谷歌搜索,但没有找到明确的答案:
为什么,当你运行以下代码时:
n = "Hello"
# Your function here!
def string_function(n):
return (n) + 'world'
print string_function
您会收到以下响应:
<function string_function at 0x7f5111010938>
None
我当然知道这个函数没有参数,但是这个响应具体是什么?那一串字母和数字是什么意思(“0x7f5111010938”)?
感谢您提供任何信息!
【问题讨论】:
-
如果要调用该函数,需要
string_function()。
标签: python function python-2.7 debugging python-3.x