「Python入門」タプルを連結するサンプル
構文
タプル1 +タプル2
サンプルコード
# coding: utf-8
cftA = (“T01″,"T02″,"T03")
cftB = (“SA","SB","SC")
cftC = cftA + cftB
print (cftC)
結果
('T01’, 'T02’, 'T03’, 'SA’, 'SB’, 'SC’)
Coding Changes the World
構文
タプル1 +タプル2
サンプルコード
# coding: utf-8
cftA = (“T01″,"T02″,"T03")
cftB = (“SA","SB","SC")
cftC = cftA + cftB
print (cftC)
結果
('T01’, 'T02’, 'T03’, 'SA’, 'SB’, 'SC’)