摘要:
list包含数字,不能直接转化成字符串。 解决办法:print(" ".join('%s' %id for id in list1)) 阅读全文
摘要:
http://skx.pythonanywhere.com/posts/9 阅读全文
摘要:
views.py 1 def selects(request): 2 if request.method =='POST': 3 l = request.POST.get('l') 4 s = NewsInfo.objects.filter(tid_id=l) 5 list = [] 6 for i 阅读全文
摘要:
views.py def deleteall(request): list = request.POST.getlist("val") if request.method =='POST': all = request.POST.getlist('val') for i in all: if i!= 阅读全文