python 循環語句

在python中,循環有一個語句:for語句。 簡單的for循環例子python >>> hello = "world" >>> for i in hello: ... print i ... w o r l d 上面這個for循環是怎麼工做的呢?markdown 1.hello這個變量引用的是"world"這個str類型的數據 2.變量 i 經過hello找到它所引用的"world",而
相關文章
相關標籤/搜索