python基本知识
基本运算符
1.(**)是次方
ex:2 ** 3 evaluates to (2 to the power of 3)8
2.(%)是求余数
ex:15 % 4 evaluates to because the remainder when dividing 15 by 4 is 33
基本运算规则
1.str 乘以数字
ex:'hello'*2 evalutes to 'hellohello'
ex:2 ** 3 evaluates to (2 to the power of 3)8
ex:15 % 4 evaluates to because the remainder when dividing 15 by 4 is 33
ex:'hello'*2 evalutes to 'hellohello'