84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
还有声明的时候声明的时候只 var sum;
为什么sum=sum+mymoney=110
Don’t quite understand that sum=sum+mymoney lasts ten times and gets 55 homesickness? -PHP Chinese website Q&A-I don’t quite understand sum=sum+mymoney. Finally, after looping ten times, I get 55 homesickness? -PHP Chinese website Q&A
Please watch and learn.
sum的初始值为0,mymoney的初始值为1时,
sum=sum+mymoney=0+1=1;
mymoney++=1+1=2;
sum=sum+mymoney=1+2=3;
一直循环下去,最后sum就是55啊。
如果最后sum等于110,那就要看你的mymoney的初始值和每次递增的度是多少了。
Don’t quite understand that sum=sum+mymoney lasts ten times and gets 55 homesickness? -PHP Chinese website Q&A-I don’t quite understand sum=sum+mymoney. Finally, after looping ten times, I get 55 homesickness? -PHP Chinese website Q&A
Please watch and learn.
sum的初始值为0,mymoney的初始值为1时,
sum=sum+mymoney=0+1=1;
mymoney++=1+1=2;
sum=sum+mymoney=1+2=3;
一直循环下去,最后sum就是55啊。
如果最后sum等于110,那就要看你的mymoney的初始值和每次递增的度是多少了。