打赏
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 54 下一页
摘要: 字符串操作 1.定义 (1.)用引号引起来的数据 str1 = "python" str2 = 'linux' str3 = """linux windows mac""" print(type(str1),type(str2),type(str3)) (2.)原始字符串 作用:避免特殊字符串被转义 阅读全文
posted @ 2021-10-31 11:24 苍山落暮 阅读(123) 评论(0) 推荐(0)
摘要: flask线程池用法 1.线程池的用法 在写任务调度的时候,难免遇到使用多线程、多进程、线程池、进程池的场景 , from flask import Flask from time import sleep from concurrent.futures import ThreadPoolExecu 阅读全文
posted @ 2021-10-28 19:07 苍山落暮 阅读(4803) 评论(0) 推荐(0)
摘要: 循环 1. for循环 语法: for 变量 in 取值列表: 执行操作 示例: # range(5),默认从0开始,生成到5之前的数字结束 for i in range(5): print("执行操作") # range(1,5) 从1开始,生成到5之前的数字结束 for i in range(1 阅读全文
posted @ 2021-10-23 10:55 苍山落暮 阅读(80) 评论(0) 推荐(0)
摘要: 条件判断 语法: if 条件: 条件为真时执行的操作 if 条件: 条件真执行 else: 条件为假执行 if 条件: 条件真执行 elif 条件: 条件为真执行 else: 条件为假执行 示例: number = 10 if number > 8: print("A") else: print(" 阅读全文
posted @ 2021-10-23 10:54 苍山落暮 阅读(137) 评论(0) 推荐(0)
摘要: 根据ip获取网卡名称 #!/bin/bash function getNetCardNameByIp(){ ipaddr=$1 ipa_info=$(ip a) line=$(echo "${ipa_info}" | sed -n -e "/\<$ipaddr\>/=") card_name=`ec 阅读全文
posted @ 2021-10-22 11:38 苍山落暮 阅读(281) 评论(0) 推荐(0)
摘要: vSphere Client安装 (1.)下载地址 https://developer.aliyun.com/article/636965 (2.)安装 点击下一步,下一步 阅读全文
posted @ 2021-10-22 11:37 苍山落暮 阅读(119) 评论(0) 推荐(0)
摘要: python远程ssh 1. python远程执行命令 #!/usr/bin/python # -*- coding: utf-8 -*- import paramiko # from cryptography.hazmat.backends import default_backend impor 阅读全文
posted @ 2021-10-22 11:32 苍山落暮 阅读(1017) 评论(0) 推荐(0)
摘要: golang Xorm操作 1.下载xorm包 go get github.com/go-xorm/xorm go get github.com/go-xorm/cmd 2.安装驱动 go get github.com/go-sql-driver/mysql //Mysql go get githu 阅读全文
posted @ 2021-10-22 11:31 苍山落暮 阅读(1418) 评论(0) 推荐(0)
摘要: httpd服务安装 1.安装httpd yum install httpd -y 2.启动服务 #启动服务 systemctl start httpd systemctl status httpd #设置自动启动 systemctl enable httpd 3.防火墙设置 # 永久打开80端口 f 阅读全文
posted @ 2021-10-22 11:29 苍山落暮 阅读(573) 评论(0) 推荐(0)
摘要: 腾讯邮箱撤回功能 1.点击已发送-->查询发信投递状态 点击发信查询--> 撤回即可 阅读全文
posted @ 2021-10-20 16:01 苍山落暮 阅读(326) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 54 下一页