python try except finally
def tryExceptFinally(): try: print("try"… 继续阅读 python try except finally
def tryExceptFinally(): try: print("try"… 继续阅读 python try except finally
def readBigFileByLine(): with open("big.txt&q… 继续阅读 python read big file per line
def pickleUsage(): import pickle d1 = dict(name=&q… 继续阅读 python pickle usage
#-Dcsp.sentinel.dashboard.server=consoleIp:port 指定… 继续阅读 jar 使用 sentinel dashboard
def chaosList(): list1 = [1, 2, 3, 4, 5] random.sh… 继续阅读 python list chaos order
def stringReverse(): s1 = "hello world" … 继续阅读 python string reverse
def randomFunc(): a = random.random() #随机生成0-1之间的小… 继续阅读 python random usage
def stringUnicode(): s1 = "去除首尾空格" s2 = … 继续阅读 python string prefix
def fileLine(file): with open(file, 'r')… 继续阅读 python strip()去除首尾空格
docker run docker run -d -p 9272:9272 -e VSPHERE_U… 继续阅读 docker run vmware_exporter
#!/bin/bash ETCDCTL_PATH='/usr/local/bin/etcd… 继续阅读 shell backup etcd
#!/bin/bash # name col2 col3 score cat 123.txt |wh… 继续阅读 shell 逐行处理字符串
#!/usr/bin/python3 import json import datetime imp… 继续阅读 python调用kubernetes api server
import ( "fmt" "os/user" "… 继续阅读 golang获取运行的当前用户信息
func fabonacci(ch chan int64, done chan struct{}) … 继续阅读 golang fabonacci use select channel
type User struct { Name string `json:"name&qu… 继续阅读 golang json mardshal忽略字段和默认零值
func IpContains(cidr string, ip string) bool { _, … 继续阅读 golang判断ip是否在cidr
show status; show session status; show global stat… 继续阅读 mysql服务器状态信息
apiVersion: batch/v1 kind: CronJob metadata: annot… 继续阅读 kubernetes cronjob备份mysql