悉野小楼

导航

上一页 1 2 3 4 5 6 7 ··· 26 下一页

2024年7月17日

python调用cocos creator打包多个小游戏脚本

摘要: 客户端打包脚本, 包括删除临时目录, git还原, 拉取, 改游戏host, 修改标题, 打包zip, 替换图片, 记录日记. pub.py import zipfile import os import shutil import subprocess import re import impor 阅读全文

posted @ 2024-07-17 09:55 悉野 阅读(13) 评论(0) 推荐(0) 编辑

2024年7月8日

winston日记不能输出到vscode控制台显示问题

摘要: 修改launch.json, 在configurations里面增加"console": "integratedTerminal".console配置有三个选项, integratedTerminal集成终端, internalConsole 内部终端, externalTerminal外部终端 { 阅读全文

posted @ 2024-07-08 10:17 悉野 阅读(6) 评论(0) 推荐(0) 编辑

2024年6月19日

vmware虚拟机桥接模式连不上网

摘要: linux里面检测是否有ip, ip addr show ens33 0.确定虚拟机网络已经设置为 桥接模式 1.vmware->编辑->虚拟网络编辑器->桥接模式->选择有线网卡, 如果是自动, 有时vmware会选中一张虚拟网卡, 是错的. 2. 进入linux, 运行命令, sudo dhcl 阅读全文

posted @ 2024-06-19 23:02 悉野 阅读(8) 评论(0) 推荐(0) 编辑

2024年6月4日

[转]JSON, Protobuf, Thrift和MessagePack的优缺点对比

摘要: 原文地址:https://www.51cto.com/article/786747.html JSON先说说 JSON,这货读起来挺舒服,用起来也简单。扩展性和兼容性都不错,能在不同语言之间传来传去结构化数据。 但 JSON 也有缺点,比如体积大,影响性能,尤其是高并发的时候。还有就是缺乏命名空间, 阅读全文

posted @ 2024-06-04 16:07 悉野 阅读(52) 评论(0) 推荐(0) 编辑

2024年5月27日

centos 7 安装mysql5.7

摘要: 0.CentOS 8下yum安装不了mysql了, 可以使用2步的方法安装, CentOS 8推荐使用MariaDB与mysql-community名字不同, 使用命令还是mysql centos 8 安装 MariaDB首先,更新你的包管理器的仓库索引:sudo yum update安装Maria 阅读全文

posted @ 2024-05-27 17:44 悉野 阅读(55) 评论(0) 推荐(0) 编辑

2024年5月24日

lua打印调用的函数文件及行数

摘要: lua根据调用堆栈可以打印调谁调用了我 string.split = function(s, delim) local split = {} local pattern = "[^" .. delim .. "]+" string.gsub(s, pattern, function(v) table 阅读全文

posted @ 2024-05-24 15:10 悉野 阅读(6) 评论(0) 推荐(0) 编辑

lua 写一个类

摘要: lua的创建类, 自定义class -- lua面向对象扩展 local _class={} function class(super) local class_type={} class_type.ctor=false class_type.super=super class_type.new=f 阅读全文

posted @ 2024-05-24 14:49 悉野 阅读(24) 评论(0) 推荐(0) 编辑

lua string扩展

摘要: lua string常用附加函数 string.split = function(s, delim) local split = {} local pattern = "[^" .. delim .. "]+" string.gsub(s, pattern, function(v) table.in 阅读全文

posted @ 2024-05-24 14:13 悉野 阅读(4) 评论(0) 推荐(0) 编辑

2024年5月23日

lua table函数补充 lua table的扩展

摘要: lua table函数补充 -- lua table扩展 -- 返回table大小 table.size = function(t) local count = 0 for _ in pairs(t) do count = count + 1 end return count end --返回tab 阅读全文

posted @ 2024-05-23 17:27 悉野 阅读(13) 评论(0) 推荐(0) 编辑

2024年5月21日

shell脚本测试

摘要: 1、$#:表示执行脚本传入参数的个数 2、$*:表示执行脚本传入参数的列表(不包括$0) 3、$$:表示进程的id;Shell本身的PID(ProcessID,即脚本运行的当前 进程ID号) 4、$!:Shell最后运行的后台Process的PID(后台运行的最后一个进程的 进程ID号) 5、$@: 阅读全文

posted @ 2024-05-21 09:31 悉野 阅读(23) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 26 下一页