Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa95e7d

Browse files
authored
Fix typo
1 parente774f4c commitfa95e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/cheatsheet/main.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ For example, we are developing a script designed to be used as a module, we shou
3737
1. Every Python module has it’s`__name__` defined and if this is`__main__`, it implies that the module is run standalone by the user, and we can do corresponding appropriate actions.
3838
2. If you import this script as a module in another script, the**name** is set to the name of the script/module.
3939
3. Python files can act as either reusable modules, or as standalone programs.
40-
4. if`__name__ ==“main”:` is used to execute some code only if the file run directly, and is not being imported.
40+
4.`if __name__ =="__main__":` is used to execute some code only if the file is run directly, and is not being imported.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp