Python
小桂子的学习记录
这个作者很懒,什么都没留下…
展开
-
GUI-文本控件Test中写入表格内容
在文本控件中写入类似表格样式原创 2023-02-01 15:44:15 · 163 阅读 · 0 评论 -
Entry限制输入字符为数字
Entry限制输入字符为数字。原创 2023-01-03 16:11:08 · 777 阅读 · 0 评论 -
python tkinter 下拉框(Combobox)
python tkinter 下拉框(Combobox)原创 2023-01-03 13:54:36 · 5924 阅读 · 1 评论 -
GUI编程(tkinter)限制Text文本框输入
GUI编程(tkinter)限制Text文本框输入原创 2022-12-06 10:47:50 · 1914 阅读 · 0 评论 -
python tkinter 菜单栏分页显示(Menu)
python tkinter 菜单栏分页显示(Menu)原创 2022-11-22 10:59:52 · 1076 阅读 · 1 评论 -
python tkinter bind绑定按键事件回调函数包含参数
部分代码示例如下:原创 2022-11-09 18:11:05 · 1666 阅读 · 2 评论 -
python连接Oracle将日期作为变量(date),赋值与SQL
python连接Oracle将日期作为变量(date),赋值与SQL原创 2022-10-26 11:28:57 · 1112 阅读 · 0 评论 -
Python脚本打包成可独立运行的应用程序
Python脚本打包成可独立运行的应用程序exe原创 2022-10-26 11:14:33 · 2274 阅读 · 0 评论 -
连接oracle数据库查询与封装调用
python连接Oracle数据库原创 2022-10-26 10:06:00 · 851 阅读 · 0 评论 -
提示:ause: java.sql.SQLException: The user specified as a definer (‘ofilecabinet‘@‘%‘) does not exis
提示:ause: java.sql.SQLException: The user specified as a definer (‘ofilecabinet’@’%’) does not exist\n; uncategorized SQLException; SQL state [HY000]; error code [1449]; The user specified as a definer (‘ofilecabinet’@’%’) does not exist; nested exception i原创 2022-03-08 14:37:02 · 403 阅读 · 0 评论 -
config.fileConfig(log_path_file)后UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x8c in positio
提示错误:config.fileConfig(log_path_file)后UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x8c in position 49: illegal multibyte sequence修改configparser.py文件,如下:原创 2022-03-08 14:33:50 · 360 阅读 · 0 评论 -
提示错误:1366,“Incorrect string value: ‘\\xE7\\x94\\xA8\\xE6\\x88\\xB7...
提示错误:1366,"Incorrect string value: '\xE7\x94\xA8\xE6\x88\xB7…解决方法:1)安装MySQL驱动:https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python选择Python对应驱动版本下载:2)在DOS命令行输入命令如下:pip install mysqlclient-1.4.6-cp38-cp38-win32.whl3)更改设置:在pycharm上改变python解释器:Fil原创 2022-03-08 14:28:12 · 1605 阅读 · 0 评论 -
提示:<_io.TextIOWrapper name=‘<stderr>‘ mode=‘w‘ encoding=‘utf-8‘>
提示:<_io.TextIOWrapper name=’’ mode=‘w’ encoding=‘utf-8’>解决方法:将HTMLTestRunner脚本的第631行的 :print >> sys.stderr, ‘\nTime Elapsed: %s’ % (self.stopTime-self.startTime)或:print(sys.stderr, ‘\nTime Elapsed: %s’ % (self.stopTime-self.startTime))修改原创 2022-03-08 14:12:13 · 3944 阅读 · 2 评论 -
安装paramenetezized报错,提示需要更新pip
安装paramenetezized报错,提示需要更新pip1)更新pip,输入代码:python -m pip install --upgrade pip -i https://pypi.douban.com/simple2)安装parameterizedDOS上直接输入: python -m pip install parameterized即可在线安装...原创 2022-03-08 14:04:21 · 918 阅读 · 0 评论 -
Python实现生成多条数据并插入数据库
1.创建TXT文件与数据:add_data代码示例:import osfrom datetime import datetime##设置文档路径与文档名file_path='D:\\自动化测试\\apitest_pycharm\\data\\user.txt'def build_data(file_path,data_count): if os.path.exists(file_path): os.remove(file_path) file=open(file_原创 2022-03-08 13:54:56 · 1984 阅读 · 0 评论