首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

Pyqt :If 8+0-5*7/3 is the text entered in the Line Edit widget ,how can we co

2012-10-16 
Pyqt :If8+0-5*7/3is thetext entered in the Line Edit widget ,how can we coPyqt :If8+0-5*7/3is thete

Pyqt :If 8+0-5*7/3 is the text entered in the Line Edit widget ,how can we co
Pyqt :If 8+0-5*7/3 is the text entered in the Line Edit widget ,how can we convert it to integer data type ?

[解决办法]
你是想根据 8+0-5*7/3 这个字符串进行计算结果么?
---------------------

Assembly code
C:\Users\ago>pythonPython 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>>>>> print eval('8+0-5*7/3')-3>>> 

热点排行