摘要:
PHP实现简单的分布式方法TCC \Db::beginTransactions(); $insertdata = array('name1' => 1212); $isok = $this->commoninsertinfo($insertdata, 'aa_copy_copy'); 第一个阶段tr 阅读全文
摘要:
PHP库存放超的方法 还有个方法就是 redis锁||redis操作库存||mysql 无符号字段库存 redis是单线程 所以不用担心并发 逻辑多用lua 阅读全文
摘要:
python 读取字典文件的方法 dic = { 'age': 23, 'city': 'beijing', 'skill': 'python' } 命名dicfile 然后读取直接import import dicfile print(dicfile.dic['age']) 阅读全文
摘要:
mysql order by用覆盖索引的方法 select dingdan from caiwuxitong_dingdanlist order by price desc 比如这个语句就应该 设置索引 顺序不能错 必须是price在前面 这样才能using index 覆盖索引排序(先是从第一个索 阅读全文
摘要:
PHP关于微信授权域名 只要回调地址是这个域名 跟公众号的授权域名设置一样就行 阅读全文
摘要:
python flask使用方法 # save this as app.py from flask import Flask app = Flask(__name__) @app.route("/ss") def hellos(): return "Hello, World!" app.run() 阅读全文
摘要:
scrcpy启动方法 scrcpy -m 1024 阅读全文
摘要:
ADB shell出现error:device offline提示 1、adb kill-server 2 adb start-server 这样手机就会提示是否启用开发者模式 阅读全文
摘要:
python yolov5检测模型返回坐标的方法 直接搜索以下代码替换下 if save_img or view_img: # Add bbox to image label = f'{names[int(cls)]} {conf:.2f}' c1, c2 = (int(xyxy[0]), int( 阅读全文
摘要:
php不用pdo防止sql语句注入的方法 function getrepairsql($sql, $replacement, $isreturn = 0) { $count = substr_count($sql, '?'); $pattern = array_fill(0, $count, '/\ 阅读全文