摘要: 基础配置 1,termux换源 termux-change-repo # 选择清华源 2,更新源 apt update && apt upgrade -y 3,安装 apt install openssh -y # 远程连接,执行sshd,可以putty连接,便于操作(IP:8022) # whoa 阅读全文
posted @ 2022-11-12 13:10 interesting5319 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: 需要处理金融相关数据,小数点位数要求6位,单纯使用 float 转化计算,导致小数位数变化且精度不满足要求,查阅相关资料后总结如下 1,基础 单精度型(float):在Turbo C中占4个字节(32位)内存空间,其数值范围为3.4E-38~3.4E+38,只提供7位有效数字。 双精度型(doubl 阅读全文
posted @ 2022-10-09 10:47 interesting5319 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1,windnd 对 windows 桌面图标拖拽加载路径 安装:pip install windnd from tkinter import * import windnd for idx,i in enumerate(ls): print(idx,i) tk = Tk() windnd.hook 阅读全文
posted @ 2022-10-09 10:26 interesting5319 阅读(986) 评论(0) 推荐(0) 编辑
摘要: Message 消息 显示多行文本消息,能够自动换行,并调整文本的尺寸使其适应给定的尺寸。 import tkinter as tk window = tk.Tk() window.title('hello thinter') height= window.winfo_screenheight() 阅读全文
posted @ 2022-10-09 10:25 interesting5319 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Scale 创建一个标尺式的滑动条对象,可以移动标尺上的光标来设置数值 import tkinter as tk window = tk.Tk() window.title('hello thinter') height= window.winfo_screenheight() width= win 阅读全文
posted @ 2022-10-09 10:25 interesting5319 阅读(38) 评论(0) 推荐(0) 编辑
摘要: Scrollbar 滚动条 用于滚动一些组件的可见范围,垂直滚动条、水平滚动条 Scrollbar 组件常常被用于实现文本、画布和列表框的滚动。 import tkinter as tk window = tk.Tk() window.title('hello thinter') height= w 阅读全文
posted @ 2022-10-09 10:25 interesting5319 阅读(60) 评论(0) 推荐(0) 编辑
摘要: PanedWindow 空间管理组件 为组件提供了一个框架,允许用户调整应用程序的划分。 import tkinter as tk window = tk.Tk() window.title('hello thinter') height= window.winfo_screenheight() w 阅读全文
posted @ 2022-10-09 10:25 interesting5319 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Menubutton 一个与 Menu 组件相关联的按钮 按下时弹出下拉菜单 import tkinter as tk window = tk.Tk() window.title('hello thinter') height = window.winfo_screenheight() width 阅读全文
posted @ 2022-10-09 10:25 interesting5319 阅读(19) 评论(0) 推荐(0) 编辑
摘要: OptionMenu 选择菜单 import tkinter as tk window = tk.Tk() window.title('hello thinter') height = window.winfo_screenheight() width = window.winfo_screenwi 阅读全文
posted @ 2022-10-09 10:25 interesting5319 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Spinbox 输入框 类似于Entry,但可以选择固定的值 import tkinter as tk window = tk.Tk() window.title('hello thinter') height= window.winfo_screenheight() width= window.w 阅读全文
posted @ 2022-10-09 10:25 interesting5319 阅读(56) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示