会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
希言自然
常存虚怀若谷,常保求知若渴
博客园
首页
新随笔
联系
管理
上一页
1
···
38
39
40
41
42
43
44
45
46
···
49
下一页
2018年10月13日
Python 之 random模块
摘要: Python中的random模块用于生成随机数。1.random.random() #用于生成一个0到1的随机浮点数:0<= n < 1.0>>> random.random()0.56505996939048142.random.uniform(a,b) #用于生成一个指定范围内的随机符点数,两个
阅读全文
posted @ 2018-10-13 15:21 醉城、
阅读(418)
评论(0)
推荐(0)
2018年10月12日
shell中处理参数getopts命令
摘要: 一、getopts 简介 由于shell命令行的灵活性,自己编写代码判断时,复杂度会比较高。使用内部命令 getopts 可以很方便地处理命令行参数。一般格式为:getopts optstring name [args] getopts 的设计目标是在循环中运行,每次执行循环,getopts 就检查
阅读全文
posted @ 2018-10-12 15:29 醉城、
阅读(3935)
评论(0)
推荐(0)
2018年10月11日
Python 之subprocess模块
摘要: Python subprocess模块运行python的时候,我们都是在创建并运行一个进程。像Linux进程那样,一个进程可以fork一个子进程,并让这个子进程exec另外一个程序。在Python中,我们通过标准库中的subprocess包来fork一个子进程,并运行一个外部的程序。subproce
阅读全文
posted @ 2018-10-11 17:30 醉城、
阅读(2209)
评论(0)
推荐(1)
2018年10月10日
python3 之configparser 模块
摘要: configparser 简介configparser 是 Pyhton 标准库中用来解析配置文件的模块,并且内置方法和字典非常接近[db]db_count = 31 = passwd2 = data3 = ddf4 = haello“[ ]”包含的为 section,section 下面为类似于
阅读全文
posted @ 2018-10-10 17:53 醉城、
阅读(163)
评论(0)
推荐(0)
2018年10月8日
hadoop-hive的内表和外表
摘要: --创建内表create table if not exists employee(id int comment 'empoyeeid',dateincompany string comment 'data come in company',money float comment 'work mon
阅读全文
posted @ 2018-10-08 16:40 醉城、
阅读(2001)
评论(0)
推荐(0)
上一页
1
···
38
39
40
41
42
43
44
45
46
···
49
下一页