小编Yot*_*tam的帖子

简单Python代码中的Str对象错误

我正在尝试回显用户的输入,然后以大写和小写再次回显它.我收到这个而不是我预期的输出:

<built-in method lower of str object at 0x100e205a0>
Run Code Online (Sandbox Code Playgroud)

那是什么意思?

我正在使用此代码:

#!/usr/bin/env python

phrase = raw_input("Enter a phrase to be capitalized: ")
print phrase
print phrase.lower
print phrase.lower
Run Code Online (Sandbox Code Playgroud)

python unix string bash terminal

2
推荐指数
1
解决办法
5016
查看次数

标签 统计

bash ×1

python ×1

string ×1

terminal ×1

unix ×1