摘要: python int类型转换为字节如下,参考官方类库文档: int.to_bytes(length, byteorder, *, signed=False) 返回表示一个整数的字节数组。 >>> (1024).to_bytes(2, byteorder='big') b'\x04\x00' >>> 阅读全文
posted @ 2020-01-02 16:33 远洪 阅读(9456) 评论(0) 推荐(0)
摘要: wxpython从2.8升级到3.0发现2个问题 png图片出现警告 iCCP:known incorrect sRGB profile 原因是 libpng升级对iCCP的要求更严格,比较好的解决方法可以通过Imagemagick软件把png图片重新保存一下即可。 安装该工具后执行:magick 阅读全文
posted @ 2020-01-01 20:25 远洪 阅读(621) 评论(0) 推荐(0)
摘要: wxpython缩放图片,方法一: 方法二: 阅读全文
posted @ 2020-01-01 19:55 远洪 阅读(1652) 评论(0) 推荐(0)
摘要: 一、GridBagLayout 布局管理器以及其GridBagConstraints布局参数详解 GridBagLayout主要使用到以下4个参数: columnWidths:设置列数;例如:gridBagLayout.columnWidths = new int[]{0}; 表示只有一列rowHe 阅读全文
posted @ 2019-12-31 22:52 远洪 阅读(4953) 评论(0) 推荐(0)
摘要: Swing组件中,如要要让容器随着窗体发的变化而自适应反打或者缩小,可以将容器布局到Gridlayout中 代码如下: 运行结果如下: 缩小的情况: 全屏的情况: 阅读全文
posted @ 2019-12-30 19:30 远洪 阅读(4827) 评论(0) 推荐(0)
摘要: 代码如下: 阅读全文
posted @ 2019-12-30 16:45 远洪 阅读(3342) 评论(0) 推荐(0)
摘要: 一、开启全站目录浏览功能 编辑nginx.conf, 在http下面添加以下内容: 二、开启网站部分目录浏览功能 编辑nginx.conf ,在server {} 模块或者 localtion 模块下加入以下内容: 阅读全文
posted @ 2019-12-19 10:32 远洪 阅读(1835) 评论(0) 推荐(0)
摘要: 配置如下: 在server增加一行: 增加后如下: 阅读全文
posted @ 2019-12-19 09:55 远洪 阅读(3887) 评论(0) 推荐(0)
摘要: 您访问的域名 192.168.110.128 没有对应的公司。 in /usr/local/nginx/html/zentaopms/module/common/model.php on line 82, last called by /usr/local/nginx/html/zentaopms/ 阅读全文
posted @ 2019-12-14 21:48 远洪 阅读(1245) 评论(0) 推荐(0)
摘要: 安装配置选项1: 安装配置选项2: 阅读全文
posted @ 2019-12-14 20:29 远洪 阅读(3040) 评论(0) 推荐(0)