libtcod

Python 2.7 IndentationError [closed]

半腔热情 提交于 2019-12-12 10:32:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am getting an IndentationError when trying to run my program in a Python Interpreter: line 127 global map ^ IndentationError: expected an indented block I am using python version 2.7 What's wrong with the following code?: def make_map(): global map 回答1: Python expects 4 spaces or a tab to indent and align code