打印功能的格式化问题

时间:2015-05-03 14:19:42

标签: python

让我的代码打印时出现问题列出了我希望它们的用途。

while index < len(choice_counts):
print(choice_titles[index]);
for number in range(0,choice_counts[index]):
    print ("*", end=" ",)
index = index + 1

目前的输出结果如下:

Steal
* * * * * * * Deal
* * * Comp steal
* * * * * * * * * * comp deal

虽然我试图让它像

Steal * * * * * * * 
Deal * * *
Comp steal * * * * * * * * * * 
Comp deal

0 个答案:

没有答案
相关问题