
Python
geovindu
为了生活,到处流浪,人间万象这本书是词汇语句难以修辞的,图像影音等介质难以描绘印象的,而一切在表象的存在中去体味....接收各人的角度看法,就因为各人所处环境和意识形态不同,才显得人间的知会智慧.
展开
-
python: SQLAlchemy (ORM) Simple example using SQLite
【代码】是一个使用 Python 结合 DDD(领域驱动设计)、MVC(Model - View - Controller)框架,借助 SQLAlchemy ORM 操作 SQLite 数据库,并利用 ttk.Treeview 进行学校信息的添加、修改、删除、模糊查询和分页的完整示例。原创 2025-02-19 22:07:49 · 304 阅读 · 0 评论 -
python: Domain-Driven Design (DDD) Simple example
视图层(View):SchoolView 类使用 ttk.Treeview 显示学校信息,并提供了分页、搜索、添加、修改和删除等操作的界面。应用层(Application):SchoolService 类封装了学校信息的业务逻辑,依赖于 SchoolRepository 完成数据的持久化操作。控制器层(Controller):SchoolController 类负责协调视图层和应用层,处理用户的操作请求并调用相应的服务方法。:用于实现简单的桌面 GUI。:用于存储任务数据。原创 2025-02-15 10:38:25 · 296 阅读 · 0 评论 -
MVC(Model-View-Controller)framework using Python ,Tkinter and SQLite
是一个基于 Python 的 Tkinter 实现的 MVC 框架示例,操作 SQLite 数据库中的 School 表,使用 ttk.Treeview 控件显示记录,具备数据分页、添加、修改、删除和模糊查询功能,添加和修改操作通过弹出窗口实现,并且采用 MDI(多文档界面)模式。原创 2025-02-11 20:23:18 · 400 阅读 · 0 评论 -
Qt Designer and Python: Build Your GUI
在Python安装的所在 Scripts 文件夹下找到此文件。如C:\Program Files\Python312\Scripts。用代码执行 pyside6-uic.exe simple.ui -o simple.py。2.pyside6-designer.exe 发送到桌面快捷方式。3. 打开pyside6-designer 设计UI。4.保存为simple.ui 文件,再转成py文件。simply2.py 引用 simply1.py。原创 2025-01-25 15:24:28 · 574 阅读 · 0 评论 -
python: simple example of working with neo4j
【代码】python: simple example of working with neo4j。原创 2025-01-22 20:20:12 · 648 阅读 · 0 评论 -
python: generate model and DAL using Oracle
【代码】python: generate model using Oracle。原创 2025-01-02 20:33:20 · 343 阅读 · 0 评论 -
oracle 21c create user
【代码】oracle 21c create user。原创 2024-12-28 17:22:11 · 423 阅读 · 0 评论 -
python: Oracle Stored Procedure query table
Oracle查询存储过程需要游标,脚本代码写法有点区别,程序也有区别。postgreSQL查询存储过程是函数,程序代码区别只是名称一致就可以了。Sql server和MySQL程序代码调用差不多,脚本代码格式不一样而已。命名规范和架构规范,找其规律,自写生成器,可以减少自己的工作量,个人初步想法。原创 2024-12-26 22:27:17 · 330 阅读 · 0 评论 -
python query oracle database
【代码】python query oracle database。原创 2024-12-24 20:29:24 · 235 阅读 · 0 评论 -
oracle: create new database
用database configuration Assistant 引导创建数据库。原创 2024-12-23 20:38:11 · 390 阅读 · 0 评论 -
Connecting to Oracle 11g Database in Python
【代码】Connecting to Oracle 11g Database in Python。原创 2024-12-21 22:33:34 · 350 阅读 · 0 评论 -
python: datatype convert
【代码】python: datatype convert。原创 2024-12-09 22:01:43 · 124 阅读 · 0 评论 -
python: Multi Document Interface (MDI) using PyQt6
【代码】python: Multi Document Interface (MDI) using PyQt6。原创 2024-12-08 19:28:47 · 110 阅读 · 0 评论 -
python: Multi Document Interface (MDI) Application using Pmw
【代码】python: Multi Document Interface (MDI) Application。原创 2024-12-06 20:13:02 · 172 阅读 · 0 评论 -
python: Treeview Pagination
【代码】python: Treeview Pagination。原创 2024-12-02 20:02:42 · 231 阅读 · 0 评论 -
python: generator model using mysql9.0 or postgreSQL 17.0
【代码】python: generator model using mysql9.0 or postgreSQL 17.0。原创 2024-11-28 06:50:16 · 327 阅读 · 0 评论 -
python: Serialize and Deserialize complex JSON using jsonpickle
【代码】python: Serialize and Deserialize complex JSON using jsonpickle。原创 2024-11-20 20:45:02 · 292 阅读 · 0 评论 -
python:reflection 反射
CSharp面象对象的语言也有类似的反射 reflection ,曾经近十年前自已在博客园写过。便于根据配置文件,方便切换数据库。原创 2024-11-19 21:58:03 · 302 阅读 · 0 评论 -
python: generator IDAL and DAL using sql server 2019
拼就是一个粗放的项目。原创 2024-11-19 21:29:06 · 407 阅读 · 0 评论 -
python: generator model using sql server 2019
設計好數據庫,可以生成自己設計好的框架項目。原設計的表有表,列的描述。原创 2024-11-19 05:47:43 · 418 阅读 · 0 评论 -
more Layer Architecture in Python and postgreSQL17.0
【代码】more Layer Architecture in Python and postgreSQL17.0。原创 2024-11-13 19:50:01 · 170 阅读 · 0 评论 -
python: postgreSQL using psycopg2 or psycopg
【代码】python: postgreSQL using psycopg2 or psycopg。原创 2024-11-13 19:32:46 · 378 阅读 · 0 评论 -
more Layer Architecture in Python and mysql 9.0
【代码】more Layer Architecture in Python and mysql 9.0。原创 2024-11-07 19:55:42 · 237 阅读 · 0 评论 -
more Layer Architecture in Python and sqlserver 2019
【代码】more Layer Architecture in Python and sqlserver 2019。原创 2024-11-07 06:27:02 · 166 阅读 · 0 评论 -
python: Parent-child form operations using ttkbootstrap
【代码】python: Parent-child form operations using ttkbootstrap。原创 2024-11-05 20:13:54 · 182 阅读 · 0 评论 -
Python: Print Table on console
【代码】Python: Print Table on console。原创 2024-10-28 23:08:08 · 221 阅读 · 0 评论 -
Python‘s exec Functions: Execute Dynamically Generated Code
【代码】Python‘s exec Functions: Execute Dynamically Generated Code。原创 2024-10-27 14:59:04 · 115 阅读 · 0 评论 -
python: more Layer Architecture and its Implementation in SQLite
【代码】python: more Layer Architecture and its Implementation in SQLite。原创 2024-10-25 05:53:23 · 193 阅读 · 0 评论 -
python: Parent-child form operations
【代码】python: Parent-child form operations。原创 2024-10-24 19:49:06 · 231 阅读 · 0 评论 -
python: sort
【代码】python: sort。原创 2024-10-19 23:51:44 · 107 阅读 · 0 评论 -
python: unittest
【代码】python: unittest。原创 2024-10-17 18:09:01 · 172 阅读 · 0 评论 -
python: pytest
【代码】python: pytest in thonny IDE。原创 2024-10-17 08:28:27 · 165 阅读 · 0 评论 -
python:create object
【代码】python:create object。原创 2024-10-12 22:53:04 · 272 阅读 · 0 评论 -
Python: Two Dimensional (2D) Array Bubble Sort
【代码】Python: Two Dimensional (2D) Array Bubble Sort。原创 2024-10-06 14:07:48 · 266 阅读 · 0 评论 -
python: create Envircomnet in Visual Studio Code 创建虚拟环境
2 terminal 下输入相关命令行操作,选进入虚拟环境的的文件夹下 cd .venv/scripts 再进行激活虚拟环境。如果是输入命令创建虚拟环境,就不需要上面的操作步骤,直接在客户端命令行下输入 python -m venv .venv(文件夹或是路径),再进行激活虚拟环境命令。1.在搜索栏输入“>" 或是用快捷组合键ctrl+shift+P键 就会显示”>",再输入"python:"如: pip install pandas。就可以看到创建了一个虚拟环境的默认的文件夹名".venv"原创 2024-07-02 20:35:37 · 389 阅读 · 0 评论 -
Python: PyCharm 2023.1 调试
2.shift+F9,或 alt+shift+f9 选择文件 或是在菜单 Run->debug "main" 或是在菜单Run->debug 选择文件 (鼠标光标放在设置第一个断点开始的地方)1.设断点 (行号对应的红色点,在需要设置断点的代码行与行号之间鼠标点击即可以设置)3再按F8. 查看一行一行代码执行过程。原创 2024-06-30 07:05:46 · 455 阅读 · 0 评论 -
Python: create object
【代码】Python: create object。原创 2024-06-23 19:26:18 · 307 阅读 · 0 评论 -
Python: HexBinDecOct
【代码】Python: HexBinDecOct。原创 2024-06-23 06:27:05 · 280 阅读 · 0 评论 -
python:faces swap
【代码】python:faces swap。原创 2024-06-13 20:43:05 · 362 阅读 · 0 评论 -
Python: Regular expressions
match()和search()都只匹配出一个符合条件的字符串,若想要所有,可以使用re.findall()-在口外面没有特殊功能,在口中要表示-本身,就不要放在两个字符之间()需要转义。转义符号,在特殊的符号前加\,来让特殊的符号没有意义不管在哪儿都需要转义。括号中任意一个字符[1-9]数字1到9 [a-z]小写 [A-Z]大写。查找所有满足正则条件的子串,返回值是迭代器,迭代器中的元素是匹配对象。字符串中满足正则表达式条件的子串替换成repl。获取字符串中满足正则表达式的所有的子串,返回一个列表。转载 2024-04-28 17:43:20 · 371 阅读 · 0 评论