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

Commit cff19a3

Browse files
committed
02-string README ✌️
1 parent b795eff commit cff19a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎02-string/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1. `match.py`:文件名后缀、前缀的判断,替换,去除左右两侧多余字符
2+
2. `string_clean.py`:文件清理,去除异常字符
3+
3. `string_merge.py`:字符串合并,打印时的连接
4+
4. `string_output.py`:指定字符串的输出宽度

‎02-string/match.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@
4545
# 删除指定字符串
4646
t = '-----hello====='
4747
t.lstrip('-')
48-
a = t.strip('-=.')
48+
a = t.strip('-=')
4949
print(a)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /