Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1540777

Browse files
committed
add string.rpartition
1 parent bf0aef4 commit 1540777

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test_rpartition/test_rpartition.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python
2+
# coding=utf-8
3+
4+
temp = "good-123"
5+
6+
result = temp.rpartition("good-")
7+
8+
print result

0 commit comments

Comments
 (0)