摘要:
国内常用python模块下载地址 清华大学:https://pypi.tuna.tsinghua.edu.cn/simple 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 阿里云:http://mirrors.aliyun.com/pypi/simp 阅读全文
摘要:
一、系统模块 1、os.name # nt 表示Windows 系统;'posix’表示Linux系统2、os.sep #输出当前操作系统的路径分隔符;windos 展示 “\” 或 “\”;linux ”/“3、os.linesep #输出当前操作系统的换行符4、os.pathsep #输出分割文 阅读全文
摘要:
一、必备知识回顾和补充 1. Hello world回顾 1、输出文本,使用print函数输出文本。 2、让用户输入名字,然后输出带名字的问候语。使用input函数获取用户的输入,使用变量保存输入值。 (1) Input函数获取运行环境中用户的输入,程序挂起等待输入完成。 (2) Print函数提供 阅读全文
摘要:
一、让python程序后台运行 1、创建一个app.py文件,如 while 1: print(123)2、创建一个set_py.bat文件,里面写 python app.py3、创建一个start_py.vbs文件,里面写 Set ws = CreateObject("Wscript.Shell" 阅读全文
摘要:
1、下载tar包 (1)Window PC下载(PC需要联网) MySQL官网地址:https://www.mysql.com/ MySQL社区版下载地址: https://dev.mysql.com/downloads/mysql/ (2)Linux服务器下载(Linux服务器需要联网): wge 阅读全文
摘要:
一、 SELECT * 的含义 select * 语句是从指定的表中按照顺序返回所有列。 二、 SELECT * 的优缺点 1 优点 在实际开发过程中,大家习惯性地使用select * from table_name进行数据查询,当然使用*代替具体的字段名称有一些优点。 主要优点有如下几个方面: 1 阅读全文
摘要:
一、连接clickhouse--客户端连接default库clickhouse-client -h localhost --port 9001 -u default --password 123456 -m; --客户端连接clickhouse-client -h localhost --port 阅读全文
摘要:
clickhouse导出表结构 #!/bin/bash OUTDIR=/root/backup/ clickhouse-client -q "SHOW DATABASES" > /root/backup/db.txt while read -r db do clickhouse-client -q 阅读全文
摘要:
fileSize=`hadoop fs -ls /data/internetLog/home/DPI/idc/20180806/*201808062[0-2]* | awk 'BEGIN{ sum=0 };{ sum+=$5 };END{ print sum}'` if [ ${fileSize} 阅读全文