4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Google Colaboratoryでインデント幅を変更する

Posted at

Pythonのインデントとは?

Google Colaboratoryデフォルトのインデントは「2」になっています.
しかしPythonでは,PEP8の規定において「4」が通例となっているので,設定で変更しましょう.

変更方法

① 設定を右上の歯車アイコンから開きます
68747470733a2f2f71696974612d696d6167652d73746f72652e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f302f313937373539352f32393662303935622d383039642d373031322d353833302d3435366635316262653336652e706e.png

編集者タブのインデント幅(スペース)を「4」にして,保存したら設定完了です.

墨_スクリーンショット 2022-04-25 135107.png

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?