python練習_84-接続文字列

405 ワード

# -*- coding:utf-8 -*-
# @Author: CH
"""
@project: python study
@time:2019/1/9-20:01
@file_name:【  84】     .py
@IDE:PyCharm 
@else: DO NOT STOP STUDYING!!!
"""
#         。
#       
delimiter = ','
mylist = ['Brazil', 'Russia', 'India', 'China']
print(delimiter.join(mylist))
#join                ,  join   ‘,’