码迷,mamicode.com
首页 >  
搜索关键字:ack    ( 23028个结果
多线程练习1_网图下载
### 案例:网图下载 ```java //1. 导入commons io里的jar包 //2. add as Library package com.hao.Demo01; import org.apache.commons.io.FileUtils; import java.io.File; i ...
分类:编程语言   时间:2021-02-10 13:02:53    阅读次数:0
golang 调用cmd执行EXE
package main import ( "bufio" "fmt" "io" "log" "os" "os/exec" // "strings" ) func checkExe2(exeAdress string) { cmd := exec.Command("cmd.exe", "/c", " ...
分类:其他好文   时间:2021-02-09 12:32:53    阅读次数:0
二叉树遍历
1.1、先序遍历 根结点-左子树-右子树 // 指针 void preorder(node* root) { if(root==NULL) return; //空树,递归边界 printf("%d\n",root->data); preoder(root->lchild); preoder(root ...
分类:其他好文   时间:2021-02-09 12:23:21    阅读次数:0
Java-http请求工具-OkHttp用法
前言:一般Java项目后端发送请求都使用http,最近项目里面大佬建议把http都改成okhttp3(OkHttpClient)。故今日记录部分常用发送方式。 代码:为了便于以后使用,这里封装一个OkHttpUtil的工具类 1、先导入jar包: <dependency> <groupId>com. ...
分类:编程语言   时间:2021-02-09 12:20:38    阅读次数:0
LeetCode28A是否是B的子串
恢复内容开始 # coding:utf-8 """ Name : LeetCode28.py Author : qlb Contect : 17801044486@163.com Time : 2021/2/7 17:17 Desc:实现 strStr() """ class Solution: d ...
分类:其他好文   时间:2021-02-08 12:33:47    阅读次数:0
包机制、javadoc、Scanner
包机制 为了更好地组织类,Java提供了包机制,用于区别类名的命名空间 包语句的语法格式为: package pkg1[.pkg2[pkg3...]]; 一般利用公司域名倒置作为包名;com.baidu.www 为了能够使用某一个包的成员,我们需要在Java程序中明确导入该包。使用import语句可 ...
分类:编程语言   时间:2021-02-08 12:05:15    阅读次数:0
scapy模块得学习
Scapy模块的应用 1.输入ifconfig查找IP地址 2.输入scapy 在scapy中,每一个协议都是一个类,而建立一个变量=协议(),相当于建立这个协议的数据包。 协议 IP(),TCP(),UDP():用的是ipv4的地址 Ether()用的是mac地址(Ether(dst=ff:ff: ...
分类:其他好文   时间:2021-02-08 12:04:06    阅读次数:0
Matrix Chain Multiplication UVA - 442
Suppose you have to evaluate an expression like ABCDE where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which ...
分类:其他好文   时间:2021-02-08 11:54:10    阅读次数:0
15. 三数之和
class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { int n=nums.size(); vector<vector<int>>ans; if(n<3) return{}; sort(nums.begi ...
分类:其他好文   时间:2021-02-08 11:52:34    阅读次数:0
layui关闭弹窗刷新页面
layer.open({ type: 2, area: ['800px','750px'], fix: false, //不固定 maxmin: true, shade: 0.3, title: "标题", content: url, btn: ['关闭'], // 弹层外区域关闭 shadeClo ...
分类:其他好文   时间:2021-02-08 11:45:34    阅读次数:0
23028条   上一页 1 ... 29 30 31 32 33 ... 2303 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!