随笔分类 -  DEV Language

摘要:本文转载: https://blog.csdn.net/hepu8/article/details/88630979 用Tkinter打造GUI开发工具(6)小部件颜色Tkinter小部件的常用属性是颜色属性,activebackground、activeforeground、background、 阅读全文
posted @ 2021-09-22 16:49 linbo.yang 阅读(213) 评论(0) 推荐(0)
摘要:ttk.Frame() code: import tkinter as tkfrom tkinter import ttk window = tk.Tk() RELIEF = ["flat", "raised", "sunken", "solid", "ridge", "groove"] windo 阅读全文
posted @ 2021-09-21 22:37 linbo.yang 阅读(281) 评论(0) 推荐(0)
摘要:Welcome to TinyDB! — TinyDB 4.5.1 documentation tinydb:Welcome to TinyDB! — TinyDB 4.5.1 documentation from tinydb import TinyDB, Query db = TinyDB(r' 阅读全文
posted @ 2021-09-21 21:00 linbo.yang 阅读(100) 评论(0) 推荐(0)
摘要:grid 学习: (23条消息) tkinter-grid布局详解_渔道的博客-CSDN博客_tkinter (23条消息) Python GUI之tkinter窗口视窗教程大集合(看这篇就够了)_weixin_33739541的博客-CSDN博客 阅读全文
posted @ 2021-09-20 10:55 linbo.yang 阅读(83) 评论(0) 推荐(0)
摘要:1 import time 2 import tkinter as tk 3 4 class Clock(tk.Tk): 5 def __init__(self): 6 super().__init__() 7 self.title("") 8 self.time_text="" 9 self.lb 阅读全文
posted @ 2021-09-19 22:05 linbo.yang 阅读(137) 评论(0) 推荐(0)
摘要:import tkinter as tk import tkinter as ttk from tkinter import messagebox class BIMView(tk.Frame): def __init__(self, parent, *args, **kwargs): super( 阅读全文
posted @ 2021-09-19 22:03 linbo.yang 阅读(144) 评论(0) 推荐(0)
摘要:转载:Python f-string - formatting strings in Python with f-string (zetcode.com) http://zetcode.com/python Python f-string Python f-string is the newest 阅读全文
posted @ 2021-09-18 23:10 linbo.yang 阅读(95) 评论(0) 推荐(0)
摘要:需求部分:(21条消息) Python——银行管理系统_LiFaSu的博客-CSDN博客_python银行管理系统 转载于:Python学习笔记-练习编写ATM+购物车(购物商城) - 乀崋 - 博客园 (cnblogs.com) 生成银行卡号:(21条消息) Python-银行卡号生成(符合校验规 阅读全文
posted @ 2021-09-12 23:06 linbo.yang 阅读(172) 评论(0) 推荐(0)
摘要:装饰器模式主要有2个用途: 增强一个组件向另一个组件发送数据时的响应能力 ; 支持多种可选行为 ; 装饰器执行顺序: def wrapper1(func): print("........wrapper1 ") def inner1(*args, **kwargs): print("........ 阅读全文
posted @ 2021-08-30 13:20 linbo.yang 阅读(78) 评论(0) 推荐(0)
摘要:多态 接口重用,一种接口,多种实现 ,必须满足2个条件 继承 (多态一定是发生在子类和父类之间) 重写 (子类需要重写父类的方法) class Animal(): def cry(self, obj): obj.cry() class dog(Animal): def cry(self): prin 阅读全文
posted @ 2021-08-29 15:29 linbo.yang 阅读(38) 评论(0) 推荐(0)
摘要:getValue 方法: 从 config.properties 配置文件中 根据 pname 来获取value : 1 api_1=t_burberry_sales_daily 2 api_2=bz_return_order 3 api_3=bz_return_order_line View Co 阅读全文
posted @ 2020-12-13 18:31 linbo.yang 阅读(1350) 评论(0) 推荐(0)
摘要:输入cmd命令(也可以写成bat文件)。 setx JAVA_HOME "C:\Program Files\Java\jdk1.8.0" setx Path "%PATH%;%JAVA_HOME%\bin"; 设置classpath命令:setx -m CLASSPATH "%JAVA_HOME%\ 阅读全文
posted @ 2020-08-13 14:12 linbo.yang 阅读(673) 评论(0) 推荐(0)
摘要:import java.io.*; String filePath = "/data/account.txt"; String conent = vars.get("account"); BufferedWriter out = null; try { File file = new File(filePath); File fileParent = file.... 阅读全文
posted @ 2019-06-23 17:08 linbo.yang 阅读(491) 评论(0) 推荐(0)
摘要:1.Properties类与Properties配置文件 Properties类继承自Hashtable类并且实现了Map接口,也是使用一种键值对的形式来保存属性集。不过Properties有特殊的地方,就是它的键和值都是字符串类型。 2.Properties中的主要方法 (1)load(Input 阅读全文
posted @ 2019-04-24 15:42 linbo.yang 阅读(185) 评论(0) 推荐(0)
摘要:pom.xml <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.16</version> </dependency> <dependency> <groupId>org.ap 阅读全文
posted @ 2018-11-10 17:22 linbo.yang 阅读(314) 评论(0) 推荐(0)
摘要:当然,有很多很好的JSON解析的JAR包,比如JSONOBJECT,GSON,甚至也有为我们测试人员而打造的JSONPATH,但我还是自已实现了一下(之前也实现过,现在属于重构)。 思想是这样的,以这个JSON串为例:String j = "{\"a\":\"b\",\"c\\\"b\":{\"a\ 阅读全文
posted @ 2018-08-06 14:10 linbo.yang 阅读(323) 评论(0) 推荐(0)
摘要:2018-06-01更新 更新了webstorm 3.2之后发现居然又不能用了,现用 http://idea.congm.in 可以激活 新增一个 http://idea.toocruel.net IDEA 下载直达链接:http://www.jetbrains.com/idea/ IDEA 破解工 阅读全文
posted @ 2018-06-01 13:07 linbo.yang 阅读(297) 评论(0) 推荐(0)
摘要:python 菜鸟博客:<!--StartFragment --> http://www.cnblogs.com/wupeiqi/articles/5433893.html http://www.cnblogs.com/linhaifeng/p/7278389.html http://www.cnb 阅读全文
posted @ 2018-03-27 09:25 linbo.yang 阅读(209) 评论(0) 推荐(0)
摘要:1.在正则表达式中,有一部分内容并不容易通过文档解释就能搞清楚,那就是预查。预查包括正向预查,反向预查,细分了还各自有肯定预查和否定预查。 特点:预查不消耗字符,也就是说,在一个匹配发生后,在最后一次匹配之后立即开始下一次匹配的搜索,而不是从包含预查的字符之后开始。其实其中有一个关键点,就是预查不消 阅读全文
posted @ 2018-03-16 14:24 linbo.yang 阅读(733) 评论(0) 推荐(0)
摘要:1 说明: 1.以下的代码亲测直接可用, 2.设计思路来自博客园的 张飞_ :http://www.cnblogs.com/zhangfei/p/5330994.html / http://www.cnblogs.com/zhangfei/p/ 3.重点在于理解 当中的设计思路 ,如果问题需要讨论可 阅读全文
posted @ 2018-03-13 18:35 linbo.yang 阅读(700) 评论(0) 推荐(0)