We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
str.starts_with(prefix: str, start: num = 0): bool
str.ends_with(suffix: str): bool
str.remove_prefix(prefix: str): str
prefix
str.remove_suffix(suffix: str): str
suffix
str.pad_start(width: num, c: str = ' '): str
width
c
str.pad_end(width: num, c: str = ' '): str
str.indent(prefix: str): str
str.dedent(): str
The text was updated successfully, but these errors were encountered:
No branches or pull requests
端の検索
str.starts_with(prefix: str, start: num = 0): bool
prefixで始まっているか
str.ends_with(suffix: str): bool
suffixで終わっているか
str.starts_withとstr.ends_withを追加 #652
端の削除
str.remove_prefix(prefix: str): str
先頭が
prefix
なら削除str.remove_suffix(suffix: str): str
末尾が
suffix
なら削除幅埋め
str.pad_start(width: num, c: str = ' '): str
長さが
width
になるようにc
を先頭に追加str.pad_end(width: num, c: str = ' '): str
長さが
width
になるようにc
を末尾に追加str.pad_startとstr.pad_endを追加 #653
インデント
str.indent(prefix: str): str
各行の先頭に
prefix
を追加。空白行の扱い?str.dedent(): str
各行の先頭に共通する長さの空白を削除
cf. feat: インデント可能文字列構文 #637
cf. https://docs.python.org/ja/3/library/textwrap.html#textwrap.dedent
The text was updated successfully, but these errors were encountered: