Django forms,HTML 和 python 小数
摘要:
小数:from __future__ import division这样用“/”就能生成小数forms:1. views中的方法传递值给template. 例如return render_response(request, '*.html',{'top_content':top_list,'module': 'audit',,"most_one":most_one})2. 在template中利用 变量用“{{ }}", 比如 {{ most_one }} most_one[0]用作most_one. 阅读全文
posted @ 2012-07-28 03:29 Songhan 阅读(284) 评论(0) 推荐(0) 编辑