© 1999-2048 dssz.net 粤ICP备11031372号
[其它] Python Tkinter实现简易计算器功能
说明:闲暇时间用tkinter写了个简易计算器,可实现简单的加减乘除运算,用了Button和Entry2个控件,下面是代码,只是简单的用了偏函数partial,因为那么多button的大部分参数都是一样的,使用偏函数可以简化参数传递,避免同样的参数传递写N次。 # -*- coding: utf-8 -*- #author: Cullen #import the module from Tkinter import * import tkFont import os from functools<weixin_38702844> 上传 | 大小:49kb