10 2020 档案

摘要:###快捷键说明 ⌘——Command(对应window的Win) ⌥——Option (对应window的alt) ⌃ ——Control ctrl键 ⇧——Shift 键盘实现Ctrl+Alt+Del就需要按4个键:control+option+command+delete ###开机后 #切换 阅读全文
posted @ 2020-10-30 21:07 该显示昵称已被使用了 阅读(414) 评论(0) 推荐(0)
摘要:1.中科大(可用) # 参考 http://mirrors.ustc.edu.cn/help/brew.git.html 1. 使用 jsDelivr CDN 下载 install.sh,然后将脚本中的 HOMEBREW_BREW_GIT_REMOTE 变量对应的值修改为 https://mirro 阅读全文
posted @ 2020-10-29 21:32 该显示昵称已被使用了 阅读(207) 评论(0) 推荐(0)
摘要:打开听写 创建脚本 创建脚本 #1 简单 set fileInfo to do shell script "say 主人,你发生什么事了" #2 复杂 set fileInfo to do shell script "/usr/local/bin/python3 /Users/sun/Documen 阅读全文
posted @ 2020-10-28 20:26 该显示昵称已被使用了 阅读(142) 评论(0) 推荐(0)
摘要:方法1. def get_all_news(self, response, file): rm_list = [ # r'</', # r'p>', # r'<', ] ret = response.xpath( '//p[not (img)][not (a)][position()>5] | // 阅读全文
posted @ 2020-10-28 07:02 该显示昵称已被使用了 阅读(359) 评论(0) 推荐(0)
摘要:常用 #看cpu cat /proc/cpuinfo #看时间 date +"%Y-%m-%d %H:%M:%S" # 参看文件的创建、修改等时间 stat filename.txt #看指定目录大小 du -sh du -h --max-depth=0 du -s * | sort -nr | h 阅读全文
posted @ 2020-10-27 09:11 该显示昵称已被使用了 阅读(357) 评论(0) 推荐(1)
摘要:https://www.cnblogs.com/zhuchenglin/p/8686924.html /bin 二进制可执行命令 /dev 设备特殊文件 /etc 系统管理和配置文件 /etc/rc.d 启动的配置文件和脚本 /home 用户主目录的基点,比如用户user的主目录就是/home/us 阅读全文
posted @ 2020-10-27 09:08 该显示昵称已被使用了 阅读(83) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/0d4bed0f37ab alias: cmd: \config\user-aliases.cmd bash:\config\user_profile.sh 阅读全文
posted @ 2020-10-25 10:22 该显示昵称已被使用了 阅读(129) 评论(0) 推荐(0)
摘要:https://www.ibm.com/developerworks/cn/linux/l-cn-sshforward/ -L(local) 在 SSH Client(C) 执行下列命令来建立 SSH 连接以及端口转发: $ ssh -g -L 7001:<B>:389 <D> 然后在我们的应用客户 阅读全文
posted @ 2020-10-24 08:42 该显示昵称已被使用了 阅读(209) 评论(0) 推荐(0)
摘要:0.multiprocessing 多进程的使用 from multiprocessing import Pool, cpu_count import time build_links = [1,2,3,4,5,6,7,8] auth = 'auth' def test(url, auth): ti 阅读全文
posted @ 2020-10-20 20:18 该显示昵称已被使用了 阅读(94) 评论(0) 推荐(0)
摘要:# pip3 install ping3 from ping3 import ping ping_ok = lambda ip: False if ping(dest_addr=ip) is None else True print(ping_ok('192.168.11.1')) 阅读全文
posted @ 2020-10-19 21:28 该显示昵称已被使用了 阅读(208) 评论(0) 推荐(0)
摘要:for i in range(20): challenge_pin = get_challenge_pin(url) if challenge_pin is not None: pin = challenge_pin + "test" + challenge_pin try: password = 阅读全文
posted @ 2020-10-19 21:00 该显示昵称已被使用了 阅读(164) 评论(0) 推荐(0)
摘要:xml.dom.minidom中的使用 pretty_print = lambda data: '\n'.join([line for line in xml.dom.minidom.parseString(data).toprettyxml(indent=' '*2).split('\n') if 阅读全文
posted @ 2020-10-19 17:20 该显示昵称已被使用了 阅读(251) 评论(0) 推荐(0)
摘要:Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "H+": this.getHours(), //小时 "m+": this.ge 阅读全文
posted @ 2020-10-17 11:27 该显示昵称已被使用了 阅读(85) 评论(0) 推荐(0)
摘要:import paramiko class My_ssh: def __init__(self,ip,username,password): self.ip=ip self.username=username self.password =password self.ssh_client = par 阅读全文
posted @ 2020-10-15 20:58 该显示昵称已被使用了 阅读(108) 评论(0) 推荐(0)
摘要:定义 import requests import logging # These two lines enable debugging at httplib level (requests->urllib3->http.client) # You will see the REQUEST, inc 阅读全文
posted @ 2020-10-04 17:48 该显示昵称已被使用了 阅读(383) 评论(0) 推荐(0)
摘要:提醒用户使用了废弃的函数 def deprecated(func): """This decorator is used to mark functions as deprecated. It will result in a warning being emitted when the funct 阅读全文
posted @ 2020-10-04 16:50 该显示昵称已被使用了 阅读(787) 评论(0) 推荐(0)
摘要:import datetime import json import requests from exception import AsstException #自定义 from log import logger #自定义 class Messenger(object): def __init__ 阅读全文
posted @ 2020-10-04 12:17 该显示昵称已被使用了 阅读(725) 评论(0) 推荐(1)
摘要:随便用用1 import logging # logging.basicConfig(level=logging.ERROR, format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s:%(message)s') logging. 阅读全文
posted @ 2020-10-04 11:15 该显示昵称已被使用了 阅读(217) 评论(0) 推荐(0)
摘要:定义 # -*- coding: utf-8 -*- import os import configparser class Config(object): def __init__(self, config_file='config.ini'): self._path = os.path.join 阅读全文
posted @ 2020-10-04 11:10 该显示昵称已被使用了 阅读(742) 评论(0) 推荐(0)