2012-11-21 63 views

回答

8

這應做到:

In [218]: mystr = "4a65737573" 

In [219]: for i in range(0, len(mystr), 2): 
    .....:  print mystr[i:i+4] 
    .....:  
4a65 
6573 
7375 
7573 
73 
+0

這是不可思議的。 :)由於你打我幾秒鐘,我會刪除我的。 – NPE

+0

我實際上只是用+1對你的評論。你在我寫評論的時候刪除了它:) – inspectorG4dget

相關問題