05 2018 档案

用javascript编写猜拳游戏(函数)
摘要:1 const readline = require('readline-sync')//引用readline-sync 2 console.log('欢迎进入猜拳游戏'); 3 //电脑随机出拳 4 let fn = function (min, max) { 5 if (!max) {//当max没有值时 6 max = min; 7 m... 阅读全文

posted @ 2018-05-26 11:43 YKmaster 阅读(1422) 评论(0) 推荐(0)

用javascript编写简单银行取钱存钱流程(函数)
摘要:1 const readline = require('readline-sync')//引用readline-sync 2 let arr = [['zhang', '123', 2000], ['yang', '123456', 3000]]; 3 //登陆 4 let add = function () { 5 let s = 2;//输入错误的次数 6 wh... 阅读全文

posted @ 2018-05-26 11:41 YKmaster 阅读(1387) 评论(0) 推荐(0)

用Java编写银行存钱取钱
摘要:const readline = require('readline-sync')//引用readline-sync let s = 2;//错误的次数 for (let i = 0; i < 3; i++) { console.log('请输入名:(由英文组成)'); let user = rea 阅读全文

posted @ 2018-05-20 15:46 YKmaster 阅读(1916) 评论(0) 推荐(0)

用js写三个数,让三个数从小到大排列
摘要:console.log('请输入三个数:'); let num1 = readline.question() - 0; let num2 = readline.question() - 0; let num3 = readline.question() - 0; let num4; if (num1 阅读全文

posted @ 2018-05-19 13:35 YKmaster 阅读(4330) 评论(0) 推荐(0)

用js写水仙花数
摘要:...js //输入一个三位数,水仙花数就是个位的三次方+十为的三次方+百位的三次方之和等于本身 console.log('请输入一个三位数:'); let a = readline.question(); if (a > 100 && a <= 999) { if (parseInt(a / 10 阅读全文

posted @ 2018-05-19 13:33 YKmaster 阅读(1898) 评论(0) 推荐(0)

用HTML编写漫威页面
摘要:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="../css/reset.css"/> <link rel="stylesheet" h 阅读全文

posted @ 2018-05-12 16:58 YKmaster 阅读(2466) 评论(0) 推荐(0)

用HTML编写淘宝页面
摘要:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="../css/reset.css"/> <link rel="stylesheet" h 阅读全文

posted @ 2018-05-12 16:54 YKmaster 阅读(25887) 评论(1) 推荐(2)