注册 登录
编程论坛 Python论坛

Python初学者一枚,各位大佬问题到底出在哪里了??找半天找不出来 啊? 箭头那里到底错哪里了

指间沙风华 发布于 2021-10-17 22:29, 2556 次点击
message="hello python world!"
print(message)


TypeError                                 Traceback (most recent call last)
<ipython-input-27-8f250d5fd29f> in <module>
      1 message="hello python world!"
----> 2 print(message)
TypeError: 'str' object is not callable

9 回复
#2
自由而无用2021-10-18 08:16
null

[此贴子已经被作者于2021-11-4 17:51编辑过]

#3
风卷浪起2021-11-13 11:15
message = "hello python world!"
print(message)
我就是这样写的呀!为什么我没有错?
#4
风卷浪起2021-11-13 11:16
我用你的代码试过了,确实没有问题。
#5
sdg1232021-11-23 12:50
我也试过没问题
#6
曦浱2021-11-29 16:09
TypeError回溯(最近一次调用上次)

<ipython-input-27-8f250d5fd29f>在<module>

1 message=“你好,python世界!”

---->2打印(信息)

TypeError:“str”对象不可调用


-----------------------------------------------------------------------------------------------
是不是还有代码你没发出来
#7
Jarrygao2021-12-13 16:27
我招聘Python,有人木,急需急需,base北京顺义区花梨坎地铁站附近
#8
ll9988v2022-05-02 20:20
努力
#9
yh31632022-07-02 16:51
试试在print括号里加上数据类型
#10
chenyucheng2022-07-02 22:41
是你的问题,我在电脑IDLE试过了
程序代码:
Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> message="hello python world!"
>>> print(message)
hello python world!
>>>

还有说null(这个回复被称为最佳答案并得分)的,什么意思?

[此贴子已经被作者于2022-7-2 22:52编辑过]

1