2013-08-26 33 views
5

我正在讀的形式validatin here Django的文章,我碰到這個蟒蛇下劃線函數名稱

ValidationError(_('Invalid value'), code='invalid') 

我的問題是什麼是_('Invalid value')呢?

+1

[Mercurial/Python - 下劃線功能的作用是什麼?](http://stackoverflow.com/questions/3077227/mercurial-python-what-does-the-underscore-function-do) – juankysmith

回答