from django.test import TestCase # Create your tests here. import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "day53.settings") import django django.setup() from app01 import model
看mentor的脚本时,遇到self._item.callspec.getparam('')语句,理解起来比较困难,找到一篇文章,记录的比较详细,特别记录一下,以备复习. 附链接地址:http://www.chengxuyuans.com/Python/67370.html 顺带粘一下正文,方便大家学习: 主要存在四种情形 1. object # public 2. __object__ # special, python system use, user should not de