摘要:
random模块 练习:生成随机验证码 import random def v_code(): code = '' for i in range(5): num=random.randint(0,9) alf=chr(random.randint(65,90)) add=random.choice( 阅读全文
posted @ 2019-08-24 15:33
gg火花
阅读(172)
评论(0)
推荐(0)
摘要:
一 模块 1 什么是模块? 常见的场景:一个模块就是一个包含了python定义和声明的文件,文件名就是模块名字加上.py的后缀。 但其实import加载的模块分为四个通用类别: 1 使用python编写的代码(.py文件) 2 已被编译为共享库或DLL的C或C++扩展 3 包好一组模块的包 4 使用 阅读全文
posted @ 2019-08-24 15:24
gg火花
阅读(280)
评论(0)
推荐(0)


浙公网安备 33010602011771号