数学运算符
$zhang = 100; $lisi = 50; echo $zhang+$lisi;
答案:150
$zhang = 50; $lisi = 40; echo $zhang - $lisi;
答案:10
$zhang = 1000; $li = $zhang*2; echo $li;
答案:2000
$zhang = 1000; $li = $zhang/2; echo $li;
答案:500
echo 7%3; echo 20%7,‘<br>‘;
python运算符请参考http://www.cnblogs.com/darkalex001/p/7486931.html
自从学了python,然后和php一起学,感觉有点烧脑...希望不要混淆了...
时间: 2024-12-09 14:33:35