注册 登录
编程论坛 Python论坛

请问为啥我的Python不能循环

豆豆的滴 发布于 2018-08-27 21:32, 1902 次点击
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> message=['1','2']
>>> for s in message:
... print(s)
  File "<stdin>", line 2
    print(s)
        ^
IndentationError: expected an indented block
>>>


3 回复
#2
豆豆的滴2018-08-28 09:36
已知晓为啥
#3
maohai2018-12-02 12:29
你知道个g儿
#4
是个业余的2018-12-02 13:12
缩进讲究maybe
1