下面的代碼顯示「字符串索引超出範圍」誤差線「子子= + S [j]的」:錯誤:索引超出範圍
s=raw_input()
l=len(s)
row=int(l**0.5)
column=row+1
i=0
while i<column:
j=i
sub=""
while j<len:
sub=sub+s[j]
j=j+column
print sub,
sub=""
i=i+1
是什麼錯誤?
不僅僅是Python。 – Barmar