<分区>
我想垂直打印字符串。我不确定当它不是列表形式时该怎么做...我提到了 izip 但我猜它只适用于列表???
Input
Output
Variable
Constant
我最初有上面的列表,然后我做了
List = ['Input', 'Output', 'Variable', 'Constant')
for entry in List.strip().split(','):
nospace_list = entry.lstrip()
print nospace_list
上面代码的输出是我给出的,现在我想将其显示为
I O V C
n u a o
p t r n
u p i s
t u a t
t b a
l n
e t