Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list = ['(有)こんにちは', '(株)さようなら']
- for i in range(len(list)):
- if '(有)' in str(list[i]):
- list[i] = list[i].replace('(有)', '有限会社')
- elif '(株)' in str(list[i]):
- list[i] = list[i].replace('(株)', '株式会社')
- print('\n'.join(list))
- >>>
- 有限会社こんにちは
- 株式会社さようなら
Add Comment
Please, Sign In to add comment