<?php
$sum = 1;//小宠物当前的饥饿程度
echo "我饿啦:-(";
echo "<br />";
while($sum<100){//小宠物的饥饿程度到100,表示小宠物吃饱啦,不用继续喂了,没吃饱继续喂食
$num = rand(1,20);//随机数,模拟喂食小宠物的小面包
$sum = $sum + $num; //小宠物吃小面包
if($sum>=100){
$sum=100;
}
echo "我还没吃饱呢!"."+".$num." 饥饿程度为".$sum;
echo "<br />";
}
echo "终于吃饱啦^_^";
?>
$sum = 1;//小宠物当前的饥饿程度
echo "我饿啦:-(";
echo "<br />";
while($sum<100){//小宠物的饥饿程度到100,表示小宠物吃饱啦,不用继续喂了,没吃饱继续喂食
$num = rand(1,20);//随机数,模拟喂食小宠物的小面包
$sum = $sum + $num; //小宠物吃小面包
if($sum>=100){
$sum=100;
}
echo "我还没吃饱呢!"."+".$num." 饥饿程度为".$sum;
echo "<br />";
}
echo "终于吃饱啦^_^";
?>
2017-07-09
已采纳回答 / shAngZo
在你的安装目录下找到wamp\alias\phpmyadmin.conf文件。用记事本打开:如下<Directory "c:/wamp/apps/phpmyadmin3.5.1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1</Directory>把Deny from al...
2017-07-08