ps1脚本中文乱码
摘要:今天在做自动打包的时候发现有中文的时候就会出现乱码,进行了各种设置都不起作用,最后没法子啰,修改了系统设置:
阅读全文
QMdiArea中嵌入QOpenGLWidget显示灰屏
摘要:更换电脑之后3D图形显示灰屏: 其他的子界面也一样会变成灰屏,并且不能切换。如果屏蔽3D 视图一切正常。 debug模式下发现只要卡在3D初始化下,子窗口空间正常。 经过几天的奋斗发现,如果最小化之后重新打开,则子窗口正常。 解决方案是最大化子窗口显示: 1 self.showMaximized()
阅读全文
python3 list append list
摘要:when you append a list to a list, something needs to be noted: 1 a = 1 2 b = [] 3 for i in range(4): 4 a = a + b 5 b.append(a) the result is right, bu
阅读全文
How to deal with the messy code when using MariaDB for Chinese
摘要:For compatibility, using the code of UTF-8. Due to the code of VS using GBK2312, so must transfer the UTF-8 to mysql_query. I use the code of this: 1
阅读全文
How to restart mariaDB
摘要:When using the service of MariaDB, using this way to restart it:
阅读全文
python实现批量压缩文件夹
摘要:前段时间碰到一个需要把目录下文件夹压缩的项目,但是度娘里没找到,只好自己写脚本了。 公司规定不能用winrar,并且rar格式的在某些客户电脑上没有办法识别,所以使用了开源软件7z来进行压缩,这个段的代码没啥东西,主要是执行7z的 压缩命令 【7z.exe a -tzip 压缩文件路径 要压缩路径
阅读全文
python脚本 FTP上传学习
摘要:学习了这个博文http://www.cnblogs.com/cacique/archive/2012/08/24/2653686.html,楼主这个文章很适合初学者,所以根据楼主的内容推演了下上传文件的操作,贴下代码:
阅读全文