摘要:参考:https://www.cnblogs.com/creator-star/p/13926602.html 上面的参考的脚本只能拆分2代的. plist中metadata的format的值2 现有plist版本为3, 所以修改了下, 需要安装pillow库的 #需要安装pillow库 #pip3
阅读全文
摘要:python的decimal的精度可以修改的 计算pi 使用莱布尼茨级数计算圆周率 from decimal import Decimal, getcontext # 设置全局精度为 100 位 getcontext().prec = 100 # 使用莱布尼茨级数计算圆周率 pi = Decimal
阅读全文
摘要:python列表推导式 arr = [1, 2, 3, 4, 5]arr_x10 = [1 / x for x in arr] 将arr中每个元素都求下倒数 python的map也可做类似的事 map(function, iterable, ...) arr = [1, 2, 3, 4, 5]res
阅读全文
摘要:在线的游戏, 迁移数据库, 数据比较大, 游戏不能停很久, 先使用sqldump导入不变的表, 再使用python导出可变的表到csv文件, 导入到新库. 找出各表中csv中最大的id, 然后停服, 然后根据各表的id, 从id位置开始再导出新增数据, 再导入到新库. export.py """ 导
阅读全文
摘要:原文:https://www.cnblogs.com/MrSong97/p/16733676.html 1.安装docker # 安装步骤 sudo yum install -y amazon-linux-extras yum-utils device-mapper-persistent-data
阅读全文
摘要:参考:https://zhuanlan.zhihu.com/p/649682551 1. 先更新 sudo dnf update 2.在Amazon Linux 2023上安装MariaDB 10.05 sudo dnf install mariadb105-server 3.启动mariadb s
阅读全文
摘要:cocos creator打包apk时, gradle下载失败, 修改gradle的下载地址: proj.android-studio\gradle\wrapper\gradle-wrapper.properties 文件中修改 distributionUrl=https\://services.g
阅读全文