#!/usr/bin/env python3 # -*- coding: utf-8 -*- L=['bart','lisa','adam'] #for循环 for Ls in L: print("hello,%s"%Ls) #while循环 n=0 while n<len(L): print('hello,%s'%L[n]) n=n+1
Sign in to make a reply
loveprruy