2022年1月8日
摘要: 生成词云图片时,以time.time()形式为图片命名,如下:banner_pic = str(time.time()) + ".jpg"。因为time.time()返回的是以秒为单位的浮点数,生成的图片命名看起来不好识别,如图。将命令换成banner_pic = time.strftime("%Y 阅读全文
posted @ 2022-01-08 11:59 希望的天空 阅读(263) 评论(0) 推荐(0) 编辑
  2022年1月6日
摘要: 最近将字典的数据Insert Into得到sqllite3报错,调试了好久才解决。系统开发完后,决心梳理下字典知识点。先解析一下遇到问题的这段代码: import sqlite3 data = {"name": "张三", "sex": "男", "age": 20} # 要导入数据库的数据,数据类 阅读全文
posted @ 2022-01-06 11:22 希望的天空 阅读(116) 评论(0) 推荐(0) 编辑
  2020年10月28日
摘要: springboot+vue建立映射时,后端引用@Table(name=“user”) 来对应表名 user,但引用后报错“Cannot resolve table 'user'”,尝试了多篇博主的博文后,问题解决,现在总结一下各位大佬的方法: 第一:View-->Tool windows-->Da 阅读全文
posted @ 2020-10-28 22:50 希望的天空 阅读(1063) 评论(0) 推荐(0) 编辑
  2020年6月10日
摘要: 管理员运行cmd,执行启动mysql命令:net start MySQL版本号 登录数据库:mysql -u root -p 输入密码 创建数据库:drop database if exists 数据库名; create database 数据库名; 展示数据库:show databases; 阅读全文
posted @ 2020-06-10 10:25 希望的天空 阅读(322) 评论(0) 推荐(0) 编辑
  2020年6月9日
摘要: 工作中用到了一些命令,记忆才深刻 1、查看服务器内存:free -h 2、查看服务器磁盘空间:df -h 3、切root用户:sudo su root 输入密码 4、查看liunx服务器下的所有用户: cat /etc/passwd|grep -v nologin|grep -v halt|grep 阅读全文
posted @ 2020-06-09 16:15 希望的天空 阅读(141) 评论(0) 推荐(0) 编辑
  2020年5月27日
摘要: 用python的open()函数打开文件时, 1、文件写绝对路径报IOError: [Errno 2] No such file or directory。文件改为相对路径(只写文件名)解决该问题 2、文件是docx类型,如下代码执行时报TypeError: file() takes at most 阅读全文
posted @ 2020-05-27 15:37 希望的天空 阅读(881) 评论(0) 推荐(0) 编辑
  2020年5月21日
摘要: 持续集成在执行UI时报错:Parent suite setup failed: SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome ve 阅读全文
posted @ 2020-05-21 10:59 希望的天空 阅读(1393) 评论(0) 推荐(0) 编辑
  2020年4月27日
摘要: 在python项目的练习中,根据字典的key值get不到value值,如图所示: 最后,将user = self.allUsers.get(cardNum)改成user = self.allUsers.get(str(cardNum))执行成功了。个人感觉应该是字典的key值是以字符串的格式存储起来 阅读全文
posted @ 2020-04-27 00:13 希望的天空 阅读(909) 评论(0) 推荐(0) 编辑
  2020年4月22日
摘要: robotframework执行UI自动化时报错,查看日志显示Parent suite setup failed: Variable '${browser}' not found. Did you mean: ${blowser} 起初一直在相关库是否导进来等方面定位问题,最后发现是引用变量时写的是 阅读全文
posted @ 2020-04-22 15:26 希望的天空 阅读(890) 评论(0) 推荐(0) 编辑
  2020年4月16日
摘要: 安装了autoit-v3-setup.exe,把autoItLibrary导入ride.py后仍然置红,开始DOS环境下手动安装autoLibrary,执行命令后如下报错:Running setup.py install for AutoItLibrary ... error Error: Comm 阅读全文
posted @ 2020-04-16 22:31 希望的天空 阅读(563) 评论(0) 推荐(0) 编辑