마지막 주소 자르기 예제
url = 'http://a/b/c/d/e'
a[:url.rfind(''/')]
문자열 모두 교체
'he hello'.replace('h','')
=> 'e ello'
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Current »
url = 'http://a/b/c/d/e'
a[:url.rfind(''/')]
문자열 모두 교체
'he hello'.replace('h','')
=> 'e ello'