Python常用函数
2017-06-18 19:15
134 查看
1.Python choice() 函数
输出结果
import random print "choice([1, 2, 3, 5, 9]) : ", random.choice([1, 2, 3, 5, 9]) print "choice('A String') : ", random.choice('A String')
输出结果
choice([1, 2, 3, 5, 9]) : 2 choice('A String') : n
相关文章推荐
- Python 常用函数的 随时整理
- python 常用函数及模块z
- python:常用的time模块和函数
- python常用文件、path函数分类整理
- python常用文件、path函数分类整理
- Python中常用字符串 函数
- Python 时间常用函数及结构
- Python模块学习之os常用函数
- Python中常用的内建函数
- python学习笔记17-常用函数总结整理
- Python里的OS模块常用函数说明
- python ftp操作脚本&常用函数
- python ftp操作脚本&常用函数
- python常用常用函数
- Python修炼--常用字符串、数学函数
- python常用函数分类整理
- Python里的OS模块常用函数说明
- PYTHON字符串常用函数
- python路径常用函数
- Python中glob模块常用函数