為什麼這篇inconsistent中文鄉民發文收入到精華區:因為在inconsistent中文這個討論話題中,有許多相關的文章在討論,這篇最有參考價值!作者windker (windker)看板Python標題[問題] 請問error:inconsis...
inconsistent中文 在 ???? Instagram 的最佳解答
2020-05-03 23:52:27
🏆🏆 BEST NINE 🏆🏆 . I find the "LIKES" from IG are inconsistent from one post to another depending if IG put your post under the "Search" tab occasiona...
#字串1abc2xyz3mno4ijk
#想要得到數字間字母的bigram
#目標是 S1=['ab', 'bc'] S2=['xy', 'yz'] S3=['mn', 'no'] S4=['ij', 'jk']
big=['1', 'a', 'b', 'c', '2', 'x', 'y', 'z', '3', 'm', 'n', 'o', '4', 'i',
'j', 'k']
L1=[(0, 's1'), (4, 's2'), (8, 's3'), (12, 's4')]
L2=[0, 4, 8, 12]
S1,S2,S3,S4=[],[],[],[]
for i in range(4):
if L1[i][1]=='s1':
for j in range(L2[i]+1,L2[i+1]-1):
print i,j
S1.append(big[j]+big[j+1])
print S1
elif L1[i][1]=='s2':
for j in range(L2[i]+1,L2[i+1]-1):
print i,j
print big[j]+big[j+1]
#1 S2.append(big[j]+big[j+1])
一旦拿掉#1就會出現error:inconsisten indentation detected,
google了一下indentation中文叫縮進,但還是不懂怎麼解,請問
有人知道如何解嗎,感恩
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.128.82