Python 練習(xí)實(shí)例77
題目:循環(huán)輸出列表
程序分析:無。
程序源代碼:
#!/usr/bin/python # -*- coding: UTF-8 -*- if __name__ == '__main__': s = ["man","woman","girl","boy","sister"] for i in range(len(s)): print s[i]
以上實(shí)例輸出結(jié)果為:
man woman girl boy sister
更多建議: