2019年12月13日

摘要: def rr(n_L, a): if str(a).isdigit(): n_L = str(n_L) #print("n_L is", n_L) k = n_L.find(".") print("k is 小数点位数:",k) # 没有小数点 if k == -1: if a > 0: xc = 阅读全文
posted @ 2019-12-13 11:58 蓦然回首一笑 阅读(258) 评论(0) 推荐(0)

2019年8月27日

摘要: #鼠标点击后传参数给函数import tkinterdef handler(event, a, b, c): '''事件处理函数''' print("handler", a, b, c)def handlerAdaptor(fun, **kwds): '''事件处理函数的适配器,相当于中介,那个ev 阅读全文
posted @ 2019-08-27 14:52 蓦然回首一笑 阅读(471) 评论(0) 推荐(0)

2019年3月16日

摘要: 1. 升级pip python -m pip install --upgrade pip 2.安装 pyinstall (打包程序) pip install pyinstaller 3 开始打包(打包的文件名为 test001.py) win+R 进入cmd 进入需要打包的python代码文件(如F 阅读全文
posted @ 2019-03-16 14:25 蓦然回首一笑 阅读(528) 评论(0) 推荐(0)

2019年2月3日

摘要: 作业:编写登录接口 1.输入用户密码 2. 认证成功后显示欢迎信息 3. 输错三次后锁定(要求:被锁定的账户要保存在电脑里 实现python与电脑的交互???) 阅读全文
posted @ 2019-02-03 12:56 蓦然回首一笑 阅读(255) 评论(0) 推荐(0)

导航