使用PrettyTable模块:
Demo:
```
from prettytableimport PrettyTable
tb= PrettyTable()
tb.field_names=["number","Square","Cube"]
for iin range (1,11):
i2= i*2
i3= i**3
tb.add_row([i,i2,i3])
print(tb)
```
使用PrettyTable模块:
Demo:
```
from prettytableimport PrettyTable
tb= PrettyTable()
tb.field_names=["number","Square","Cube"]
for iin range (1,11):
i2= i*2
i3= i**3
tb.add_row([i,i2,i3])
print(tb)
```
本文标题:2019-12-27图片问题记录
本文链接:https://www.haomeiwen.com/subject/ebnroctx.html
网友评论