Skip to content

Instantly share code, notes, and snippets.

@Comamoca
Last active February 18, 2022 13:10
Show Gist options
  • Save Comamoca/1afca59b2129e54e40a92d802fa90825 to your computer and use it in GitHub Desktop.
Save Comamoca/1afca59b2129e54e40a92d802fa90825 to your computer and use it in GitHub Desktop.
My Python Snippets
snippet defg "def name() ..."
def ${1:funcname}(${2:args}):# {{{
"""${3:関数の説明タイトル}
${4:関数についての説明文}
Args:
${5:
引数の名前 (引数の型): 引数の説明
引数の名前 (:obj:`引数の型`, optional): 引数の説明.
}
Returns:
${6:戻り値の型: 戻り値の説明 (例 : True なら成功, False なら失敗.)}
Raises:
${7:例外の名前: 例外の説明 (例 : 引数が指定されていない場合に発生 )}
Yields:
${8:戻り値の型: 戻り値についての説明}
Examples:
${9:
関数の使い方について記載
>>> print_test ("test", "message")
test message
}
Note:
${10:注意事項などを記載}
"""# {{{
endsnippet
@Comamoca
Copy link
Author

add marker string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment