石头剪子布 # 0 石头,1 剪刀, 2 布# 0 输,1 赢, 2 平$a = rand(0,2);$b = rand(0,2);$win = 0;if( $a == $b ) $win = 2;if( $a == 0 ){switch ( $b ){case 1:$win = 1; break;case 2