2016-07-28 32 views

回答

2

the docs,標題語法下,部分表達式替換

特殊字符$用於指定Python表達式。表達式可以用()或{}括起來用於顯式分組。

所以:

$for item in item_list: 
    <td>$(item.get("fans_cnt")/1000)</td> 

應該做你想要什麼。