python练习-for in str

2017-01-10 19:23:33来源:作者:人点击

for coolguy in ("tom","jerry","alex"): print coolguy ,"is coolest guy ever!"
result
C:/Python27/python.exe C:/Users/hunk.hu.BWH/PycharmProjects/untitled/coolguy.py
tom is coolest guy ever!
jerry is coolest guy ever!
alex is coolest guy ever!
Process finished with exit code 0

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台