擅长:python、mysql、java
<p>我按照那个教程去做。将这些行粘贴到模型消息上。在</p>
<pre><code>@property
def formatted_timestamp(self):
return self.timestamp.strftime('%H:%M:%S')
def as_dict(self):
return {'handle': self.handle, 'message': self.message, 'timestamp': self.formatted_timestamp}
</code></pre>
<p>它会起作用的</p>