码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
python http requests失败重试方法, 退避算法(Retrying HTTP Requests with Backoff)
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-启动
一、启动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语法之模板用法
定义模板WXML提供模板(template),可以在模板中定义代码片段,然后在不同的地方调用。 1,定义模板使用 name 属性,作为模板的名字。然后在<template/>内定义代码片段 <!-- index: int msg: string time: string--><template na ...
分类:微信   时间:2020-06-02 09:19:18    阅读次数:83
python调用大漠插件教程04鼠键事件及基本项目思维
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中花括号{1..10}的注意事项
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
配置bash以及bash初始化
一、登陆模式和非登陆模式 1 对于登陆和费登陆有着不同启动配置 2 登陆shell(会执行变量的初始化): 在登陆时创建(包括X图形登录) su - 3 非登陆shell: su 图形终端 执行脚本 任何其他bash实例Bash启动任务:profile保存在/etc/profile(全局,所有用户的 ...
分类:其他好文   时间:2020-06-01 23:46:27    阅读次数:93
Linux基础7-4 Bash脚本编程练习2
练习: 1.写一个脚本,完成下列要求 给定一个用户,如果其UID为0,就显示此为管理员 否则就显示为普通用户 2.写一个脚本,完成下列要求 判断当前系统上是否有用户的默认shell为bash 如果有,就显示有多少个这类用户,否则就显示没有此类用户 3.写一个脚本,完成下列要求 给定一个文件件 /et ...
分类:系统相关   时间:2020-06-01 23:34:27    阅读次数:102
ssm整合-Sping整合Mybatis框架配置事务07
在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
SQL判断 一个字段为空时,取出另一个字段数据
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!