python入门之语句(if语句、while语句、for语句)
程序员文章站
2022-03-06 16:35:51
...
python入门之语句,包括if语句、while语句、for语句,供python初学者参考。
//if语句例子 name = 'peirong'; if name == 'peirong': print 'this is peirong'; elif name== 'maojun': print 'this is maojun'; else: print 'others'; //while语句 i = 0; a = range(10); while i