Python 横向填表

Python 横向填表,python,html,Python,Html,假设我有一张清单 e.g. apple car bin 如何使其在表格中水平填充而不是垂直填充,即在表格中看起来是这样的: apple car bin im使用的代码只是对整行重复列表的每个条目,代码如下: <body> <div metal:fill-slot="main"> <h1>List of Species in the Database</h1> <table border="0"

假设我有一张清单

e.g.

apple
car
bin
如何使其在表格中水平填充而不是垂直填充,即在表格中看起来是这样的:

apple car bin
im使用的代码只是对整行重复列表的每个条目,代码如下:

<body> 
    <div metal:fill-slot="main">
        <h1>List of Species in the Database</h1>
        <table border="0" width="100%">
            <tr tal:repeat="records container/Query_Species">
                <td tal:content="records/gene_bank_species">Species</td>
                <td tal:content="records/gene_bank_species">Species</td>            
            </tr>
    </div>
</body>

数据库中的物种列表
种
种

种
种

列表被重新绘制两次,在一列中,你应该用“苹果”替换第一个“物种”,用“汽车”替换第二个“物种”。我想你会明白的
<table border="0" width="100%">
    <tr tal:repeat="records container/Query_Species">
        <td tal:content="records/gene_bank_species">Species</td>
    </tr>
    <tr tal:repeat="records container/Query_Species">
        <td tal:content="records/gene_bank_species">Species</td>            
    </tr>
 </table>