摘要:
源代码: #!usr/bin/python3 # -*- coding:utf-8 -*- # @Time: 2018/12/17 下午2:07 # @File: do_excel.py # @Software: PyCharm import unittest from api_auto.commo 阅读全文
摘要:
import randomdef generate_mobile(): """随机生成一个手机号码。。1[3,5,8,]+9""" phone = '1'+random.choice(["3","5","8"]) for i in range(9): num = random.randint(1,9 阅读全文
摘要:
import random import string # 随机生成6到20位包含大小写字母加数字的用户名 def Creat_usernamePwd(): i = random.randint(6,20) username = ''.join(random.sample(string.ascii_ 阅读全文
摘要:
# 答疑 有人会问是什么原因导致了 这个问题,按正常理解来说在IDE里面能运行,在命令窗口里也照样能运行,都是执行的同一份文件? 这是因为Python在启动解释器(Interpreter)的时候不只会导入环境变量中sys.path发现的模块,还会导入当前工作目录下的模块。当你在IDLE中启动解释器时 阅读全文