在如下所示的代码中,我将数据转储到列表中,如下所示:
def foo():
list1=[It’s possible Arianne could appear in future seasons, but as Kotaku notes, the official character bio of Trystane describes him as the heir to Dorne, while Ariane’s love interest, Aerys Oakheart, has also not been cast. The exclusion comes as a surprise to fans, not just because Arianne is a major player in the fantasy novels’ numerous plot twists, but also because she was a strong, complex female character in a fictional universe that doesn’t have too many of those.]
return list1
在视图 html 中:
{{extend 'layout.html'}}
<h1>{{=list1}}</h1>
如何将每个句子打印为要点?