Discuss / Python / 123123123

123123123

Topic source

x = ['Bart', 'Lisa', 'Adam'] //定义三个值 sum = 0 //定义sum为0; while sum < 3: //当sum<3时 print('hello',x[sum]) <strong></strong>**//打印hello,Bart sum=sum+1 //继续打印hello,Lisa hello,Adam


  • 1

Reply