に私は、Pythonのオンラインコンソールを使用しています:http://shell.appspot.com/ 私はこのコードを記述しようとしています:パイソン:エラーは、オンラインコンソールのpython
class tree:
def __init__(self, charge, left=None, right=None):
self.charge = charge
self.left = left
self.right = right
私が入るプッシュして、私はこれを取得、最初の行class tree:
を書いたときコンソールからのエラー
Traceback (most recent call last):
File "/base/data/home/apps/shell/1.335852500710379686/shell.py", line 221, in get
compiled = compile(statement, '<string>', 'single')
File "<string>", line 2
^
IndentationError: expected an indented block
このコードを書く方法を教えてもらえますか?おかげさまで
Downvotedのためにも、スタックオーバーフローは、この種のことについて尋ねるには完全に間違った場所です。せいぜい、スーパーユーザーが行く場所になるでしょう。 –