python - Python Tkinter 代码-TypeError:“按钮”对象不可调用
问题描述
我已确保按钮名称不类似于任何函数,但当我尝试使用三角函数或从数学导入的任何日志/其他函数时,此错误仍然显示。我正在构建一个科学计算器,虽然我能够成功地添加/subt/mult/div 并使用括号和小数点,但调用诸如 sin cos tan 之类的数学函数会显示 TypeError: 'Button' object is not callable
解决方案
推荐阅读
- angular - 如何避免从嵌入式 Spring Boot Angular 应用程序中的另一个浏览器选项卡复制粘贴 url
- django - Django的“请求”不是只有在显式调用时才有效吗?
- react-native - 带有滑块范围和过滤的问题
- pattern-matching - 多模式近似/模糊字符串匹配
- php - 在 Wordpress 中按 ID 隐藏帖子和类别中的内容
- sql - 如何在 MS-Access 中按聚合函数排序?
- discord - 如何在 discord.py 中创建归档命令?
- java - 单例模式 | 代码中 volatile 的用途是什么,因为 synchronized 关键字还根据 java 内存模型提供可见性被授予者
- web-scraping - 我如何从 barchart.com 抓取这些股票代码?
- openssl - 用于在 openssl 中签名算法的自定义 OID