摘要: for和if结合使用: <h1> {% for i in contents %} {{ i }}{# 注意i也要用两个大括号 #} {% endfor %} </h1> 阅读全文
posted @ 2019-03-04 17:48 阿Q啊 阅读(4953) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/sss4/p/8097653.html 阅读全文
posted @ 2019-03-04 15:14 阿Q啊 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Python编码第一步是导入模块,有时候用import ***有时候用from...import,它们有什么区别呢,请看实例A/B: A: 1.当模块test.py中没有类,只有方法add,此方法实现传入的数字+1功能 (1)如果使用import导入:import test 调用方法:test.ad 阅读全文
posted @ 2019-03-04 13:32 阿Q啊 阅读(1123) 评论(0) 推荐(0) 编辑