import requests from datetime import datetime import time import random retry_timeout = 10 def http_request(url, first_request_time=None, retry_counte ...
分类:
编程语言 时间:
2020-06-02 10:55:59
阅读次数:
89
一、启动rocketmq参考https://blog.csdn.net/lw5885799/article/details/886460511,启动name server进入bin目录下nohup mqnamesrv -n 你的公网IP:9876 &2,修改配置文件在conf/broker.conf ...
分类:
其他好文 时间:
2020-06-02 09:27:14
阅读次数:
66
定义模板WXML提供模板(template),可以在模板中定义代码片段,然后在不同的地方调用。 1,定义模板使用 name 属性,作为模板的名字。然后在<template/>内定义代码片段 <!-- index: int msg: string time: string--><template na ...
分类:
微信 时间:
2020-06-02 09:19:18
阅读次数:
83
from win32com.client import Dispatch import os from random import uniform from time import sleep class Operation: def __init__(self, dm, hwnd): self.d ...
分类:
编程语言 时间:
2020-06-02 00:16:12
阅读次数:
121
bash shell中,我们执行echo {1..10},会打印1-10这些数字 [root@localhost ~]# echo {1..10} 1 2 3 4 5 6 7 8 9 10 但是有个前提,这其中的{1..10}不能带上引号,单双引号,反引号都不行。这是花括号的实现限制,如果想仔细了解 ...
分类:
其他好文 时间:
2020-06-02 00:01:11
阅读次数:
100
一、登陆模式和非登陆模式 1 对于登陆和费登陆有着不同启动配置 2 登陆shell(会执行变量的初始化): 在登陆时创建(包括X图形登录) su - 3 非登陆shell: su 图形终端 执行脚本 任何其他bash实例Bash启动任务:profile保存在/etc/profile(全局,所有用户的 ...
分类:
其他好文 时间:
2020-06-01 23:46:27
阅读次数:
93
练习: 1.写一个脚本,完成下列要求 给定一个用户,如果其UID为0,就显示此为管理员 否则就显示为普通用户 2.写一个脚本,完成下列要求 判断当前系统上是否有用户的默认shell为bash 如果有,就显示有多少个这类用户,否则就显示没有此类用户 3.写一个脚本,完成下列要求 给定一个文件件 /et ...
分类:
系统相关 时间:
2020-06-01 23:34:27
阅读次数:
102
在spring配置文件中配置:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLS ...
分类:
其他好文 时间:
2020-06-01 23:30:22
阅读次数:
61
定义 本质是函数,用来装饰其他函数(为其他函数添加附加功能)。通俗来讲:高阶函数 + 嵌套函数 = 装饰器 原则 1.不能修改被装饰的函数的源码 2.函数的调用方式也不能被修改 现存在一个函数 foo(), import time def foo(): time.sleep(1) print('in ...
分类:
其他好文 时间:
2020-06-01 22:19:04
阅读次数:
68
table = db.exec_sql("""insert into dw.part_subject ( part_name, part_type, part_status, reg_date, source_id, source) select case when iccard_name is n ...
分类:
数据库 时间:
2020-06-01 21:00:53
阅读次数:
525