码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
产生10个随机数,用冒泡法排序,从大到小输出(降序)
冒泡法排序: 1 #include <iostream> 2 #include<ctime> 3 #include<cstdlib> 4 using namespace std; 5 6 int main() { 7 int a[10] ,i,j,t; 8 srand(time(0)); //sra ...
分类:编程语言   时间:2020-05-19 18:32:45    阅读次数:125
Python GUI编程(Tkinter)Menu顶层菜单
import tkinterwin = tkinter.Tk()win.title("sunck")win.geometry("400x400+200+20")#菜单条menubar = tkinter.Menu(win)win.config(menu=menubar)def func(): pri ...
分类:编程语言   时间:2020-05-19 16:43:53    阅读次数:104
运维工作常用的性能分析工具介绍-iftop
iftop是类似于top的实时流量监控工具iftop可以用来监控网卡的实时流量(可以指定网段)、反向解析IP、显示端口信息等。 1、iftop界面相关说明界面上面显示的是类似刻度尺的刻度范围,为显示流量图形的长条作标尺用的。中间的<= =>这两个左右箭头,表示的是流量的方向。TX:发送流量RX:接收 ...
分类:其他好文   时间:2020-05-19 16:21:55    阅读次数:55
go 的路由中间件实现原理
利用go原生的 http 模块,写一个简单的服务,然后实现以下路由中间件 一、简单的中间件实现 package main import ( "fmt" "net/http" "time" ) func hello(wr http.ResponseWriter, r *http.Request) { ...
分类:其他好文   时间:2020-05-19 15:10:24    阅读次数:52
sed文本替换
很多shell 通过grep取出文本, 正则替换再输出。 正确的是sed。 通过s 命令: echo Tom like Jerry. Tom hats Jerry. > kan.txt sed 's/Tom/Kan' < kan.txt Kan like Jerry. Tom hats Jerry. ...
分类:其他好文   时间:2020-05-19 15:01:29    阅读次数:55
python投票一致性指数(IVC)实现代码
毕业论文中用于计算联合国会员国间在联合国大会上的投票一致性 import pandas as pd import sqlite3 import networkx as nx import time import numpy as np def gen_dict(sql):#建立投票数据字典 vote ...
分类:编程语言   时间:2020-05-19 14:49:18    阅读次数:65
使用Netcat实现通信和反弹Shell
一、概述 nc全称为netcat,所做的就是在两台电脑之间建立链接,并返回两个数据流 可运行在TCP或者UDP模式,添加参数 —u 则调整为udP,默认为tcp -v 参数,详细输出 -n参数,netcat不要DNS反向查询IP的域名 -z参数,连接成功后立即关闭连接 -l参数 监听 -p参数 指定... ...
分类:Web程序   时间:2020-05-19 14:38:58    阅读次数:97
python初学者案例,桌面文件搜索小程序的实现
import os import tkinter as tk import glob from tkinter.filedialog import * # import threading import time def openFile(): dirname = askdirectory() # ...
分类:微信   时间:2020-05-19 13:02:31    阅读次数:118
shell map
Shell中map的使用 Shell中的map与array有很多的相似之处,array操作:https://www.cnblogs.com/qq931399960/p/10786111.html 一、在使用map时,需要先声明,否则结果可能与预期不同,array可以不声明 declare -A ma ...
分类:系统相关   时间:2020-05-19 12:53:33    阅读次数:55
分组后按时间排序每组取最新一条记录
如图,我想是实现按取每一种币别的最新的那条汇率; 先按币别分组 筛选出你小于指定日期的最大时间和币别集合 select cur_Id,max(pre_time)as preTime from fc_excrate_adjust fe where fe.pre_time<=to_date('2020- ...
分类:编程语言   时间:2020-05-19 12:48:29    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!