小陆同学

python 中文名:蟒蛇,设计者:Guido van Rossum

导航

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页

2020年5月27日 #

python--生成随机字符串

摘要: import random,string ran_str = ''.join(random.sample(string.ascii_letters + string.digits, 43)) print(ran_str) 随机生成43位a-zA-Z0-9字符串 阅读全文

posted @ 2020-05-27 21:32 小陆同学 阅读(399) 评论(0) 推荐(0)

django orm group_by Q查询

摘要: from django.db.models import Max,Avg,F,Q,Min,Count,Sum this_year = datetime.datetime.now().year this_year_data = UserPrice.objects.filter(year=this_ye 阅读全文

posted @ 2020-05-27 21:27 小陆同学 阅读(570) 评论(0) 推荐(0)

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

摘要: pip2 install django-import-export DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 i 阅读全文

posted @ 2020-05-27 21:17 小陆同学 阅读(25064) 评论(0) 推荐(1)

2020年4月17日 #

jquery--获取同一个属性的多个input,和select

摘要: jquery获取同一个属性的多个input值 <input type="text" name="name" id="input_name" placeholder="请输入名称"> <input type="text" name="name" id="input_name" placeholder= 阅读全文

posted @ 2020-04-17 23:35 小陆同学 阅读(2106) 评论(0) 推荐(0)

jquery--复选下拉框获取值

摘要: <select class="form-control" id="businessRootEnvSelect" name="env" multiple> // $("#businessRootEnvSelect option:selected").each(function(){ // packag 阅读全文

posted @ 2020-04-17 23:31 小陆同学 阅读(190) 评论(0) 推荐(0)

jquery--checkbox全选/全不选

摘要: <input type="checkbox" id="boxid" onclick="setAllNo()" />全选/全不选 # 渲染多选数据for (i = 0; i < data.length; i++) { envHtml += '<input type="checkbox" name="e 阅读全文

posted @ 2020-04-17 23:30 小陆同学 阅读(239) 评论(0) 推荐(0)

jquery--监听checkbox多选框是否选中,展示输入框

摘要: <div> <input type="checkbox" id="addChoiceSelect" name="add_choice" onchange="javascript:oBtAddChoice();"> 是否添加姓名 &nbsp; &nbsp; &nbsp; <input type="te 阅读全文

posted @ 2020-04-17 23:28 小陆同学 阅读(2684) 评论(0) 推荐(0)

shell--脚本之间传值,模仿jenkins内置变量的功能

摘要: # vim father.sh name='zhangsan' # vim child.sh source /mnt/father.sh echo $name # sh child.sh 输出内容: zhangsan 阅读全文

posted @ 2020-04-17 23:23 小陆同学 阅读(781) 评论(0) 推荐(0)

python--os模块递归本地目录

摘要: def getAllDirRE(path, sp = ""): #得到当前目录下所有的文件 filesList = os.listdir(path) #处理每一个文件 sp += " " for fileName in filesList: #判断是否是路径(用绝对路径) fileAbsPath = 阅读全文

posted @ 2020-04-17 23:17 小陆同学 阅读(434) 评论(0) 推荐(0)

python--脚本添加定时任务

摘要: from datetime import datetime 周一到周五每天早上6点半执行任务 # 输出时间 def job(): print(datetime.now().strftime("%Y-%m-%d %H:%M:%S")) # BlockingScheduler scheduler = B 阅读全文

posted @ 2020-04-17 23:14 小陆同学 阅读(891) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页