解析方法package main
import (
"encoding/xml"
"errors"
"fmt"
"os"
)
type T...
阅读全文...
简单更新web资源脚本
#!/bin/bash
#登录账号
user=`whoami`
#运行环境
env="debug";
if [[ $user = "root" ]]; then
echo $user;
env=&q...
阅读全文...
阅读全文...
虚拟环境-virtualenv的使用
安装virtualenvpip install virtualenv查看版本号virtualenv --version创建新环境virtualenv venv启动环境source venv/bin/activate在虚拟环境中安装包pip install...
阅读全文...
阅读全文...
统计目标文件夹下的文本行数
统计所有文件类型find . -type f \( ! -name ".*" \) | xargs wc -l统计指定文件类型 如txtfind . -type f \( ! -name ".txt" \) | x...
阅读全文...
阅读全文...