博學(xué)谷Python+大數(shù)據(jù)就業(yè)課\/--》ccys1473
基本用法:
Scanner sc = new Scanner(System.in); ?//創(chuàng)建Scanner對(duì)象。Scanner為類,sc是自己命名的,可任意。System.out.println("請(qǐng)輸入你的數(shù)據(jù)……");double height = sc.nextDouble(); ? //接收數(shù)據(jù)。System.out.println("你輸入的數(shù)據(jù)是:"+height);
標(biāo)簽: