「python入門」append()の使い方
pythonコード:
#!/usr/bin/python
cftLst = [789, 'sample’, 'testdata’, 'prevent’];
cftLst.append( 2017 );
print “Updated List : “, cftLst;
実行結果:
Updated List : [789, 'sample’, 'testdata’, 'prevent’, 2017]
Coding Changes the World
pythonコード:
#!/usr/bin/python
cftLst = [789, 'sample’, 'testdata’, 'prevent’];
cftLst.append( 2017 );
print “Updated List : “, cftLst;
実行結果:
Updated List : [789, 'sample’, 'testdata’, 'prevent’, 2017]