Django Book 翻译
菜单>:
TOC
返回
原文:
This is important to keep in mind when youre writing view code. Many built-in Python functions are fussy (and rightfully so) about accepting only objects of a certain type. A common error is to attempt to create a ``datetime.date`` object with string values instead of integer values:
翻译:
当你在写视图代码时记住这点很重要,许多Python内建的方法对于接受的对象的类型很讲究。一个典型的的错误就是用字符串值而不是整数值来创建 ``datetime.date`` 对象:
备注:
译者: