摘要: import java.util.Scanner;public class game{ public static void main(String[] args){ System.out.println("---猜拳游戏---"); System.out.println("1、剪刀 2、石头 3、布"); Scanner sn=new Scanner(System.in); int person = sn.nextInt();//接收输入 int computer=(int)(Math.random()*3)+1;//随机生成数 String mark 阅读全文
posted @ 2014-03-08 22:45 Neville 阅读(165) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-03-08 17:26 Neville 阅读(94) 评论(0) 推荐(0)