首页 > 解决方案 > 练习练习中的 python 文件在两个不同的实例中给出错误“TypeError:'int' object is not callable”

问题描述

#这是我的代码,我不明白

链接到代码和错误的图片

#如何使用正确的函数使 int 18 可调用。我正在努力实现一些决定您的年龄和投票资格的事情。

谢谢大家,亲切的问候!

标签: pythonpython-3.x

解决方案


It looks like you have an extra = after print on line 3.

By the way, you can copy and paste the code in your question instead of using a screenshot. You can then surround the code with three backticks(```) in the beginning and end to format the text as code.


推荐阅读