系统版本:ubuntu 16.04 LTS 64bits 零、流程化、标准化的步骤,光明的大道往前走 1、先从github clone下来 HTTPS : git clone https://git.openwrt.org/openwrt/openwrt.git 如果比较慢或者不能clone可以换成 ...
分类:
其他好文 时间:
2020-01-13 14:30:15
阅读次数:
456
a=`cat ./host`password=$1for i in $ado/usr/bin/expect << EOFspawn ssh-copy-id root@$iexpect "continue connecting (yes/no)?"send "yes\r"expect "passwor ...
分类:
其他好文 时间:
2020-01-13 12:48:46
阅读次数:
68
让敌人靠近,然后选择合适的时候袭击他们 简介 别在少数几个敌人身上浪费你的 cleave() ,灵活运用 distanceTo() 击中更多敌人。 默认代码 while True: enemy = hero.findNearestEnemy() if enemy: pass # 用你自己的代码替换这 ...
分类:
其他好文 时间:
2020-01-13 12:38:40
阅读次数:
111
//Post请求 string postData = "method=" + method + "&user_id=" + user_id + "&passWord=" + passwordEnc + "&sign=" + sign; apiResult = monitor.HttpPostAsyn ...
分类:
Web程序 时间:
2020-01-13 11:20:09
阅读次数:
646
下载 //俩种下载方式选1 # go get -u github.com/kataras/iris # git clone https://github.com/kataras/iris.git 1. Get、Post、Put等请求 1 package main 2 3 import ( 4 "gi ...
分类:
其他好文 时间:
2020-01-13 11:07:25
阅读次数:
125
1 #!/bin/bash 2 ############################################################### 3 #Author :Bing # 4 #Create Time:11/26/2019 # 5 ###################### ...
分类:
其他好文 时间:
2020-01-13 10:37:31
阅读次数:
82
面向对象三大特性 封装 根据 职责 将 属性 和 方法 封装 到一个抽象的 类 中 继承 实现代码的重用,相同的代码不需要重复的编写 多态 不同的对象调用相同的方法,产生不同的执行结果,增加代码的灵活度 01. 单继承 1.1 继承的概念、语法和特点 继承的概念:子类 拥有 父类 的所有 方法 和 ...
分类:
编程语言 时间:
2020-01-13 01:12:19
阅读次数:
95
问题 如何手工添加FTP账号 解决方案 *请先确认安装的FTP软件是否是muddleftpd 确定用户名/密码和主目录,如 user: joe pass: abcd1234 home: /home/joe 运行: /usr/prima/muddleftpd/bin/mudpasswd -p /usr ...
分类:
其他好文 时间:
2020-01-12 22:24:00
阅读次数:
103
#类的装饰原理,自定义一个高阶函数(把函数当做参数传入,返回值也是相同函数地址)def foo(bar): print(bar) bar.x=1 #操作Name的属性字典 bar.y=2 return bar@foo #Name=foo(Name)class Name: passprint(Name ...
分类:
编程语言 时间:
2020-01-12 18:34:01
阅读次数:
74
一 、 location: 顾名思义 地址,也叫路由。 nginx服务器非常核心的配置,一般nginx运维人员在修改nginx配置时,大部分也是围绕着location这个配置进行修改。 下面看一下一个简单的location配置: 这个配置表示任何一个路径访问nginx服务器,都跳转到home目录下的 ...
分类:
其他好文 时间:
2020-01-12 18:02:04
阅读次数:
85