该文被密码保护。 阅读全文
posted @ 2023-06-13 10:08 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-06-04 19:19 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-06-03 08:45 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-05-25 20:52 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-05-04 15:15 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-26 11:07 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-24 15:08 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-20 15:30 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-20 11:06 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-19 17:58 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-19 17:55 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-17 14:46 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-15 20:39 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-14 16:00 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-13 15:53 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-13 15:50 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-04-04 17:38 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-03-25 14:36 leo0362 阅读(0) 评论(0) 推荐(0) 编辑
摘要: <?php // 建立TCP连接对象 $connection = new AMQPConnection([ 'host' => '127.0.0.1', 'port' => '5672', 'vhost' => '/', 'login' => 'guest', 'password' => 'gues 阅读全文
posted @ 2022-10-15 12:35 leo0362 阅读(72) 评论(0) 推荐(0) 编辑
摘要: //插入排序 function insertSort($array) { $n=count($array);//获取排序数组的长度 for($i=1;$i<$n;$i++){ $do=$array[$i];//准备排序的数值 //一直往左边找,比待排序大的数都往后挪,腾空位给待排序插入 for ($ 阅读全文
posted @ 2022-07-26 15:45 leo0362 阅读(66) 评论(0) 推荐(0) 编辑
摘要: //冒泡排序-小到大 function bubbleSort($array){ $n=count($array);//获取排序数组的长度 //外层循环 for($i=0;$i<$n-1;$i++){ //内层循环 for ($j=0;$j<$n-$i-1;$j++){ //判断并交换 if($arr 阅读全文
posted @ 2022-07-26 14:04 leo0362 阅读(7) 评论(0) 推荐(0) 编辑
摘要: //已经排序好的数组 二分查找--递归--返回数组的索引--返回-1 就是找不到 $left 最左边索引 $right--最右边索引 function twoFinds($array,$find,$left,$right){ //左边大于右边-超出查找范围-找不到数据 if($left>$right 阅读全文
posted @ 2022-07-26 10:17 leo0362 阅读(16) 评论(0) 推荐(0) 编辑
摘要: function funt1($n){ if($n<=1){ return $n; } return funt1($n-2)+funt1($n-1); } function funt2($n){ if($n<=1){ return $n; } $one=0; $two=1; $sum=0; for 阅读全文
posted @ 2022-07-25 20:31 leo0362 阅读(11) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <style> p { text-align: left; padding 阅读全文
posted @ 2022-07-12 11:02 leo0362 阅读(70) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "sync" ) var wg sync.WaitGroup func hello(i int) { defer wg.Done() fmt.Print(i, "hello hello\n") } func main() { for i := 阅读全文
posted @ 2022-07-10 12:01 leo0362 阅读(17) 评论(0) 推荐(0) 编辑
摘要: import socket def main(): client=socket.socket() client.connect(("127.0.0.1",8081)) while True: inputs=input(">>>").strip() client.send(len(inputs).to 阅读全文
posted @ 2022-07-09 18:45 leo0362 阅读(3) 评论(0) 推荐(0) 编辑
摘要: package main import ( "bufio" "fmt" "net" ) func process(conn net.Conn) { defer conn.Close() for { reader := bufio.NewReader(conn) var buf [124]byte n 阅读全文
posted @ 2022-07-09 18:36 leo0362 阅读(13) 评论(0) 推荐(0) 编辑
摘要: package domysql /** * mysql 数据库操作封装包 */ import ( "fmt" _ "github.com/go-sql-driver/mysql" "github.com/jmoiron/sqlx" ) // 定义数据表结构体 type User struct { I 阅读全文
posted @ 2022-06-24 14:28 leo0362 阅读(39) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "reflect" ) func mathStduy() { var a int = 5 var b int = 6 c := a + b fmt.Printf("c: %v\n", c) d := b - a fmt.Printf("d: % 阅读全文
posted @ 2022-06-23 11:19 leo0362 阅读(11) 评论(0) 推荐(0) 编辑
摘要: <template > <div ref="wrapper"> <div class="content"> <slot></slot> </div> </div> </template> <script> import BScroll from '@better-scroll/core' impor 阅读全文
posted @ 2022-04-29 10:12 leo0362 阅读(253) 评论(0) 推荐(0) 编辑
摘要: pox.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2020-10-30 17:50 leo0362 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 返回的值直接复制是可以解析, 有可能服务器返回数据前面有一个点. 解决方法,服务器返回数据前清楚缓存: 如php ob_clean(); 阅读全文
posted @ 2020-10-21 09:46 leo0362 阅读(417) 评论(0) 推荐(0) 编辑
摘要: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2020-10-13 14:43 leo0362 阅读(122) 评论(0) 推荐(0) 编辑
摘要: package cn.pg.service; public interface UserService { public void add(); public void edit(); public void delete(); public void select(); } package cn. 阅读全文
posted @ 2020-10-12 15:29 leo0362 阅读(131) 评论(0) 推荐(0) 编辑
摘要: package cn.dai; //贷款接口 public interface Loans { public void loads(); } package cn.dai; public class Bank implements Loans { @Override public void load 阅读全文
posted @ 2020-10-12 11:11 leo0362 阅读(90) 评论(0) 推荐(0) 编辑
摘要: package cn.pg.dai; public interface ChaoImpl { public void add(); public void edit(); public void delete(); } package cn.pg.dai; public class Chao imp 阅读全文
posted @ 2020-10-11 17:49 leo0362 阅读(78) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#-*- coding:utf-8 -*-# author:leo# datetime:2020/3/17 9:16# software: PyCharm#闭包def outer(): a=12 def inner(): print(a) return 1 阅读全文
posted @ 2020-03-17 11:33 leo0362 阅读(155) 评论(0) 推荐(0) 编辑
摘要: /** * 工厂模式 */ //产品必须实现的接口 interface Animal{ public function designation(); } class Dog implements Animal { public function designation() { echo "Dog"; 阅读全文
posted @ 2019-12-25 15:40 leo0362 阅读(92) 评论(0) 推荐(0) 编辑
摘要: server <?php /** * websorket 即时通讯服务器 */ class Websocket { private $_serv; private $_pdo; public function __construct($host='0.0.0.0',$port=9501) { $th 阅读全文
posted @ 2019-12-02 14:16 leo0362 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 一、linux 下磁盘的a56爆大奖在线娱乐方式 /dev/sda1 /dev 设备文件目录 sd : a56爆大奖在线娱乐sata,sas,usb,scsi 接口的硬盘 a: linux 用字母表是第几磁盘,a代表第一块 1:linux 用数字a56爆大奖在线娱乐某块磁盘的第几分区 二、磁盘使用 磁盘初始化-》磁盘分区:一个磁盘只能分4个区,主 阅读全文
posted @ 2019-07-08 15:25 leo0362 阅读(123) 评论(0) 推荐(0) 编辑