Test
Hello World!
rw3
一题
public class Good {
//定义商品编号
private int itemNumber;
//定义商品名称
private String productName;
//定义商品产地
private String productOrigin;
//定义商品进货价格
private int purchasePrice;
//定义商品零售价格
private int retailPrice;
//定义商品存货数量
private int inventoryQuantity;
//定义商品进货日期
private String purchaseDate;
//定义构造方法
public Good(int itemNumber, String productName, String productOrigin, int purchasePrice, int retailPrice, int inventoryQuantity, String purchaseDate) {
this.itemNumber = itemNumber;
this.productName = productName;
this.productOrigin = productOrigin;
this.purchasePrice = purchasePrice;
this.retailPrice = retailPrice;
this.inventoryQuantity = inventoryQuantity;
this.purchaseDate = purchaseDate;
}
//定义set&get方法
public int getItemNumber() {
return itemNumber;
}
public void setItemNumber(int itemNumber) {
this.itemNumber = itemNumber;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductOrigin() {
return productOrigin;
}
public void setProductOrigin(String productOrigin) {
this.productOrigin = productOrigin;
}
public int getPurchasePrice() {
return purchasePrice;
}
public void setPurchasePrice(int purchasePrice) {
this.purchasePrice = purchasePrice;
}
public int getRetailPrice() {
return retailPrice;
}
public void setRetailPrice(int retailPrice) {
this.retailPrice = retailPrice;
}
public int getInventoryQuantity() {
return inventoryQuantity;
}
public void setInventoryQuantity(int inventoryQuantity) {
this.inventoryQuantity = inventoryQuantity;
}
public String getPurchaseDate() {
return purchaseDate;
}
public void setPurchaseDate(String purchaseDate) {
this.purchaseDate = purchaseDate;
}
//定义tostring方法
@Override
public String toString() {
return "Good{" +
"itemNumber(商品编号)=" + itemNumber +
", productName(商品名称)='" + productName + '\'' +
", productOrigin(商品产地)='" + productOrigin + '\'' +
", purchasePrice(商品进货价格)=" + purchasePrice +
", retailPrice(商品零售价格)=" + retailPrice +
", inventoryQuantity(商品存货数量)=" + inventoryQuantity +
", purchaseDate(商品进货日期)=" + purchaseDate +
'}';
}
public static int sumPrice(int a, int b) {
return a * b;
}
//main方法
public static void main(String[] args) {
Good good = new Good(1, "五粮液", "四川宜宾", 990, 1000, 50, "2021-10-22");
Good good1 = new Good(2, "茅台", "贵州茅台", 1200, 1300, 50, "2021-8-13");
System.out.println(good);
System.out.println(good1);
//商品总价格
System.out.println(sumPrice(good.getPurchasePrice(), good.getInventoryQuantity()));
System.out.println(sumPrice(good1.getPurchasePrice(), good1.getInventoryQuantity()));
}
}
二题
import java.util.Scanner;
public class _02 {
public static void judgmentString(String a) {
if (a.length() < 10) {
System.out.println("你输入的字符少于10个字符,请重新运行程序");
} else {
boolean b = isNumber(a);
if (b == false) {
System.out.println("你输入的字符第五位不是数字");
} else if (b == true){
System.out.println("你输入的字符第5位是数字");
}
}
}
public static boolean isNumber (String s){
boolean flag = false;
char c = s.charAt(4);
if (c >= '0' && c <= '9') {
flag = true;
}
return flag;
}
public static void main(String[] args) {
System.out.printf("请输入一个字符串:");
Scanner scanner = new Scanner(System.in);
String s = scanner.nextLine();
judgmentString(s);
}
}
三题
public class _03 {
public static void main(String[] args)
{
int i,j,k,n;
n = 6;//外层循环控制层数
for(i=1;i<=n;i++)
{
if (i == 1) {
continue;
}
if (i == 6) {
System.out.printf(" ***** ");
continue;
}
//根据外层行号,输出星号左边空格
for(j=1;j<=n-i;j++)
System.out.print(" ");//根据外层行号,输出星号个数
for(k=1;k<=2*i-1;k++)
System.out.printf("*");//一行结束,换行
System.out.printf("\n");
}
}
}
四题
html代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<link rel="stylesheet" type="text/css" href="style.css">
<title>青岛科技大学统一身份认证系统</title>
</head>
<body class="login_bg_f">
<remove-web-limits-iqxin id="rwl-iqxin" class="rwl-exempt" style="position: fixed; top: 0px; left: 0px;"><qxinbutton type="qxinbutton" id="rwl-setbtn"> set </qxinbutton> <lalala style="cursor:move; font-size:12px;">限制解除</lalala> <input type="checkbox" name="" id="black_node"><style type="text/css">#rwl-iqxin{position:fixed;transform:translate(-95px,0);width:85px;height:25px;font-size:12px;font-weight: 500;font-family:Verdana, Arial, '宋体';color:#fff;background:#333;z-index:2147483647;margin: 0;opacity:0.05;transition:0.3s;overflow:hidden;user-select:none;text-align:center;white-space:nowrap;line-height:25px;padding:0 16px;border:1px solid #ccc;border-width:1px 1px 1px 0;border-bottom-right-radius:5px;box-sizing: content-box;}#rwl-iqxin input{margin: 0;padding: 0;vertical-align:middle;-webkit-appearance:checkbox;-moz-appearance:checkbox;position: static;clip: auto;opacity: 1;cursor: pointer;}#rwl-iqxin.rwl-active-iqxin{left: 0px;transform:translate(0,0);opacity: 0.9;height: 32px;line-height: 32px}#rwl-iqxin label{margin:0;padding:0;font-weight:500;}#rwl-iqxin #rwl-setbtn{margin: 0 4px 0 0;padding: 0 0 0 4px;border: none;border-radius: 2px;cursor: pointer;background: #fff;color: #000;} </style></remove-web-limits-iqxin>
<!--登录页页头 START-->
<div class="header_01 header_shadow_login">
<div class="header_02_space">
<a class="header_01_logo" href="javascript:this.top.vpn_inject_scripts_window(this);vpn_eval((function () { ; }).toString().slice(14, -2))">
<img src="comm/image/head_logo.png?vpn-1">
</a>
<div class="loginpage_head_line"></div>
<font class="loginpage_head_txt">统一身份认证</font>
<p class="header_01_help">登录帮助</p>
<p class="herder_btn_line"></p>
<div class="header_01_mobile" id="mobile_download">手机端下载
<div class="trangle_box" id="mobile_code_box" style="display:none;">
<span class="trangle"></span>
<img src="comm/image/code_03.jpg?vpn-1" alt="">
<p>扫码下载</p>
<p>手机端智慧校园</p>
</div>
</div>
</div>
</div>
<!--登录页页头 END-->
<!-- 登录版块 START-->
<form id="loginForm" action="/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/login?service=https%3A%2F%2Fwvpn.qust.edu.cn%2Flogin%3Fcas_login%3Dtrue" method="post">
<div class="login_space">
<div class="login_space_content">
<div class="content_login_box">
<p class="notice_bar" id="errorDiv">
</p>
<div class="login_box_title">
<span class="login_box_title_name">登 录</span>
<span style="display:none;" class="login_box_title_notice script_red">用户不存在!</span>
</div>
<input type="text" class="login_box_input" id="un" tabindex="1" autocomplete="off" placeholder="用户名">
<input type="password" class="login_box_input" id="pd" tabindex="2" autocomplete="off" placeholder="密码">
<div class="down_link_choice">
<a href="pwd" class="login_box_checkbox_label right">忘记密码?</a>
</div>
<div class="new-login-way">
<div class="login-way-btn">
<a class="wechat left" href="https://wvpn.qust.edu.cn/https/77726476706e69737468656265737421ffe7449269276d59660187e289446d36a8d6/connect/qrconnect?appid=wxea4b3312c07abc35&response_type=code&scope=snsapi_login&redirect_uri=http%3A%2F%2Fipass.qust.edu.cn%2Ftpass%2Fwx%3Fclient_name%3DWXClient">
微信登录
</a>
<a class="qq-login right" href="https://wvpn.qust.edu.cn/https/77726476706e69737468656265737421f7e5408c2f7e7941300b86a1/oauth2.0/authorize?client_id=101523199&response_type=code&redirect_uri=http%3A%2F%2Fipass.qust.edu.cn%2Ftpass%2Fqq&ascope=get_user_info&state=qust">
QQ登录
</a>
</div>
</div>
<span class="landing_btn_bg">
<input type="button" class="login_box_landing_btn" id="index_login_btn">
立即登录
<p style=" line-height: 20px;">温馨提示: <c style="font-size:50%">学生账号为学号,教职工账号为职工号,初始密码均为身份证号后六位 </c>
</p>
<p style="color:#004ea2;font-size:50%">建议使用浏览器: IE10+ 火狐 谷歌 360(极速模式)</p>
</span>
</div>
</div>
</div>
<input type="hidden" id="rsa" name="rsa">
<input type="hidden" id="ul" name="ul">
<input type="hidden" id="pl" name="pl">
<input type="hidden" id="lt" name="lt" value="LT-1166852-cEwAxH0NpZJyH5qnAVGqEGLnfKqiie-tpass">
<input type="hidden" name="execution" value="e1s1">
<input type="hidden" name="_eventId" value="submit">
</form>
<!-- 登录版块 END-->
</body>
</html>
css代码
@charset "utf-8";
/* --------------------------------------------------------------
Resets default browser CSS.
-------------------------------------------------------------- */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, input
{margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:"microsoft yahei";vertical-align:baseline;}
html {}
table, caption, tbody, tfoot, thead, tr, th, td
{margin:0;padding:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
body {line-height:1.5;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
table, td, th {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
a img {border:none;}
input {border:none;}
ul{list-style:none;}
label{/*cursor:pointer;*/color:#666;}
body {font-size:75%;color:#222;background:#fff;font-family:Helvetica, Arial,"microsoft yahei", sans-serif;}
h1, h2, h3, h4, h5, h6 {font-weight:bold;color:#000;}
h1 {font-size:36px;font-family:"microsoft yahei", sans-serif;}
h2 {font-size:45px;float:left;color:#CCC;margin-top:10px;font-weight:normal;}
h3 {font-size:16px;margin:8px 0;margin:8px 0 7px\0;color:#000;}
h4 {font-size:14px;margin:8px 0;color:#666;}
h5 {font-size:12px;margin:8px 0;color:#666;}
h6 {font-size:12px;margin:8px 0;}
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
p {color:#666;}
a:focus, a:hover {text-decoration:underline;}
a {
font-family:"microsoft yahei";
color:#666;
text-decoration:none;
cursor:pointer;
}
span{color:#666;font-family:"microsoft yahei"}
textarea{overflow:hidden;}
fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
legend {font-weight:bold;font-size:1.2em;}
input.text:focus, input.title:focus, textarea:focus, select:focus {border:1px solid #666;}
input.text, input.title {width:300px;padding:5px;}
input.title {font-size:1.5em;}
input.text, input.title, textarea, select {margin:0 0;border:1px solid #dedede;font-size:12px;color:#666;font-family: Helvetica,Arial,"����",sans-serif;}
select{width:120px;float:left;padding:2px;height:25px;line-height:25px;}
/*--------------------base css maqt start-------------------*/
.right{float:right !important;}
.row {float:left; width:100%;}
.left{float:left !important;}
.clear{clear:both;}
.overflow_hidden{overflow:hidden;clear:both;}
.display_block{display:block;}
.postion_relative{position: relative;}
.cursor_pointer{cursor: pointer!important;}
.bg_image_none{background-image: none !important;}
.text_overflow{overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;}
.border_bottom{border-bottom:solid 1px #DEDEDE;}
.border_bottom_dash{border-bottom:dashed 1px #DEDEDE;}
.border_top{border-top:solid 1px #DEDEDE;}
.noborder{border:none !important;}
.border_top_none{border-top: none !important;}
.border_bottom_none{border-bottom: none !important;}
.margin_left_none{margin-left:0 !important;}
.margin_right_none{margin-right:0 !important;}
.margin_bottom_none{margin-bottom:0 !important;}
.margin_top_none{margin-top:0 !important;}
.margin_top_20{margin-top:20px !important;}
.padding_bottom_none{padding-bottom:0 !important;}
.graybold {font-weight:bold;}
.black{color:#000 !important;}
.blackbold {font-weight:bold;color:#000 !important;}
.black_333{color:#333333!important;}
.gray_666{color:#666666!important;}
.lightgray{color:#999 !important;}
.lightgray *{color:#999;}
.lightgray_ccc{color: #ccc;}
a.highlight, .highlight, .highlight a,a.blue{font-weight:normal;}
a.highlightheader{font-weight:bold;font-size:14px;}
a.bluebold, .bluebold ,a.navbar_titer{font-weight:bold;}
span.red {color:red;}
.script_red{color: #ff0000 !important;}
.orange{color:#f17842!important;}
.green{font-weight:normal;color:#390 !important;}
.greenbold{color:#390;font-weight:bold;}
/*--------------------base css maqt end-------------------*/
/*--------------------templet.css maqt start------------------*/
body{
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/container_01.jpg) #f6f6f6 no-repeat center 0;
}
a.highlight, .highlight, .highlight a{color:#09C !important;}
a.highlightheader{color:#09C;}
a.blue{color:#09C;}
a.bluebold, .bluebold ,a.navbar_titer{color:#09C;}
.dark_blue{color: #00607f !important;}
/*--------------------templet.css maqt end-----------------*/
/*------------内容页头部 开始---------------*/
.header_01{
width: 100%;
min-width: 1000px;
height: 70px;
position: relative;
z-index: 100;
background:rgba(255,255,255,0.9);
border-bottom: 1px solid #dedede;
}
.header_01_space{
width: 960px;
height: 80px;
margin: 0 auto;
}
.header_01_logo{
float: left;
height: 70px;
margin: 0 0 0 4px;
}
.loginpage_head_line {
float: left;
border-left: 1px solid #c8c9cb;
width: 12px;
height: 34px;
margin: 17px 0 0 20px;
}
.loginpage_head_txt {
float: left;
height: 40px;
line-height: 40px;
margin: 15px 0 0 14px;
color: #333333;
font-family:"microsoft yahei";
font-size: 18px;
}
.header_01_help,.header_01_mobile{
float: right;
height: 21px;
line-height: 21px;
padding: 0 0 0 22px;
margin: 29px 12px 0 0;
color: #666;
font-family: "microsoft yahei";
font-size: 14px;
cursor: pointer;
}
.header_01_help {
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/question_mark_icon.png) no-repeat 0 2px transparent;
}
.header_01_mobile {
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/phone_icon.png) no-repeat 0 1px rgba(0, 0, 0, 0);
background-repeat:no-repeat;
padding-left: 23px;
position:relative;
z-index:10;
}
.trangle_box{
position:absolute;
top:41px;
left:-42px;
border:1px solid #c4c8cb;
width:141px;
padding:18px 16px;
background-color:#fff;
text-align:center;
box-shadow:0px 1px 1px 2px rgba(0,0,0,0.1);
z-index:11;
}
.trangle_box img{
height:142px;
width:142px;
margin-bottom: 12px;
}
.trangle_box span{
font-size: 14px;
color:#333;
}
.trangle{
width:11px;
background:url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/trangle.png);
height: 7px;
position:absolute;
top:-7px;
left:82px;
}
.header_visit_count{
float: right;
height: 20px;
line-height: 20px;
margin: 37px 14px 0 0;
color: #999;
}
.herder_btn_line{
float: right;
height:18px;
width:1px;
background-color: #c4c6c4;
margin:32px 15px 0 3px;
}
/*------------内容页头部 结束---------------*/
/*------------脚部 开始--------------*/
#footer {
width: 100%;
height: 38px;
clear: both;
overflow: hidden;
padding: 18px 0 0;
background-color: #fff;
}
.footer_inside{
width:calc(100% - 240px);
margin:0 auto;
}
.footer_bar{
float:left;
margin-top:3px;
width:500px;
}
.footer_line{
float:left;
margin:0 10px 0 10px;
line-height:18px;
*line-height:16px;
}
/*------------脚部 结束--------------*/
.container_02{
width: 958px;
border: 1px solid #dedede;
margin: 20px auto 0;
overflow: hidden;
clear: both;
}
.title_a_5{
float: left;
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/title_a_5_bg.png) scroll repeat 0 0 transparent;
width: 958px;
height: 52px;
border-bottom: 1px dashed #dedede;
}
.title_a_5 .title_1_5_icon{
float: left;
width: 30px;
height: 30px;
margin: 11px 0 0 18px;
}
.title_a_5 .title_1_5_name{
float: left;
height: 30px;
line-height: 30px;
font-family: "microsoft yahei";
font-size: 16px;
margin: 11px 0 0 7px;
}
.container_02_cotent{
float: left;
background-color: #fff;
width: 958px;
min-height: 460px;
}
.c02_cotent_left{
float: left;
width: 698px;
margin: 0 0 0 10px;
padding-bottom: 40px;
}
.input_btn_4{
float:left;
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/remind_btn.png) scroll no-repeat 0 0 transparent;
width:68px;
height:28px;
line-height:28px;
color:#fff;
font-size:14px;
line-height:29px;
cursor:pointer;
padding-bottom:2px;
}
.input_btn_13{
float:left;
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/inpu_btn_13.png) scroll no-repeat 0 0 transparent;
width:81px;
height:28px;
line-height:28px;
color:#fff;
font-size:14px;
line-height:29px;
cursor:pointer;
padding-bottom:2px;
}
/* 登录页 开始 */
.header_02_space{
width: calc(100% - 240px);
height: 70px;
margin: 0 auto;
}
.mid_container{
width: 100%;
min-width: 1000px;
height: 514px;
margin: 0 0 5px;
border:2px solid #a3a2a2;
border-left:0;
border-right:0;
}
.login_space{
width: 100%;
height: 373px;
margin: 0 auto;
border-bottom: 1px solid #d5d5d5;
}
.container_space{
width: 1000px;
height: 560px;
margin: 0 auto;
}
.content_login_box{
float: right;
width: 336px;
height: 373px;
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/login_box_bg.png) repeat;
overflow: hidden;
margin-right:83px;
}
.login_space_content{
width: calc(100% - 240px);
margin: 0 auto;
}
.login_box_title{
float: left;
width: 255px;
margin: 14px 0 0 30px;
}
.login_box_title_name{
float: left;
font-family: "microsoft yahei";
font-size: 20px;
color:#fff;
}
.login_box_title_notice {
float: left;
margin: 2px 0 0 12px;
width: 184px;
}
.login_box_input{
float: left;
width: 256px;
height: 42px;
line-height: 42px;
padding: 0 10px;
border: 1px solid #dedede;
margin: 14px 0 0 30px;
color: #999;
border-radius:10px;
}
.down_link_choice{
float: left;
width: 256px;
margin: 12px 0 0 40px;
}
.login_box_checkbox{
float: left;
margin: 3px 6px 0 1px;
*margin-top: -2px;
}
.login_box_checkbox_label{
float: left;
height: 18px;
line-height: 18px;
color: #fff;
}
.login_box_sepline{
float: left;
height: 18px;
line-height: 18px;
*line-height: 14px;
_line-height: 14px;
color: #999;
margin: 0 8px;
}
.login_box_psd{
float: left;
height: 18px;
line-height: 18px;
color: #09c;
}
.login_box_landing_btn{
float: left;
background: transparent;
width: 157px;
height: 40px;
cursor: pointer;
}
.login_box_down{
float: left;
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/login_box_down_bg.png) scroll repeat-x 0 0 transparent;
width: 295px;
}
.ide_code{
float: left;
width: 265px;
margin: 16px 0 0 21px;
_margin-left: 11px;
}
.ide_code_label{
float: left;
width: 48px;
height: 28px;
line-height: 28px;
text-align: right;
color: #999;
}
.ide_code_input{
float: left;
width: 54px;
height: 26px;
line-height: 26px;
border: 1px solid #dedede;
padding: 0 5px;
}
.ide_code_image{
float: left;
width: 74px;
height: 26px;
border: 1px solid #dedede;
margin: 0 0 0 8px;
}
.ide_code_next{
float: left;
height: 18px;
line-height: 18px;
color: #09c;
margin: 4px 0 0 8px;
white-space: nowrap;
}
.login_box_notice{
float: left;
line-height: 22px;
height: 22px;
padding: 0 10px;
background-color: #b9233a;
border-radius:5px;
color:#fff;
margin:18px 0 0 30px;
}
/* 登录页 结束 */
.footer_link{
float:left;
line-height:18px;
line-height:16px;
margin-right: 20px;
color:#000;
}
/*登陆页tab*/
.login_box_tab {
height:41px;
width:100%;
}
.login_tab_01,.login_tab_02 {
float:left;
height:41px;
width:50%;
display:block;
box-sizing:border-box;
background-color:#f5f5f5;
border-bottom:1px solid #dedede;
text-decoration: none !important;
font-size:14px;
font-family: "Microsoft YaHei";
font-weight:bold;
text-align:center;
line-height:40px;
color:#666;
}
.login_tab_02 {
border-left:1px solid #dedede;
}
.login_checked {
background: none;
border-bottom:none;
}
/*****华中大按钮******/
.landing_btn_bg{
float: left;
background-image:none;
background-color:#004ea2;
width: 278px;
height: 38px;
cursor: pointer;
font-family:"Microsoft YaHei";
font-size:16px;
border-radius:10px;
margin: 16px 0 0 30px;
color:#fff;
text-align:center;
position:relative;
line-height:36px;
}
.login_box_landing_btn{
float: left;
background: transparent;
width: 255px;
height: 38px;
cursor: pointer;
font-family:"Microsoft YaHei";
font-size:18px;
border-radius:6px;
position:absolute;
left:0px;
top:0px;
}
/*门户特性*/
.feature_bar{
width: 100%;
height: 296px;
background-color: #fff;
padding-bottom: 4px;
}
.feature_bar_content{
width: 1007px;
margin:0 auto;
height: 296px;
}
.feature_title{
float: left;
width: 100%;
font-size: 21px;
line-height: 74px;
color:#000;
}
.feature_section_bar{
float: left;
width: 100%;
}
.feature_section{
float: left;
width: 155px;
height: 162px;
border-radius: 10px;
margin:0 5px 0 0;
padding:21px 25px 0;
}
.feature_section img{
float: left;
width: 57px;
height: 56px;
}
.feature_section span{
float: left;
margin:17px 0 0 19px;
font-size: 14px;
font-weight: bold;
color:#000;
white-space: nowrap;
}
.feature_section p{
width: 100%;
word-break:break-all;
word-wrap:break-word;
float: left;
line-height: 19px;
margin-top: 12px;
}
.gray_bg{
background-color: #f6f6f6;
}
.apps_section_bar{
position: relative;
float: left;
width:100%;
overflow: hidden;
}
.apps_bar{
background-color: #fff;
width: 100%;
min-height: 250px;
overflow:hidden;
}
.apps_section_content{
margin:0 auto;
width: calc(100% - 240px);
}
.apps_section{
float: left;
width: calc((100% - 6px) / 5);
padding:0 30px;
margin:0 0 0 0;
text-align:center;
box-sizing:border-box;
height:238px;
}
.blue_icon{
background:url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/icon_blue_bg.png) no-repeat center 0;
}
.orange_icon{
background:url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/icon_orange_bg.png) no-repeat center 0;
}
.apps_section_line{
float: left;
height:174px;
border-right: 1px solid #eee;
}
.apps_section_icon{
width:100%;
display:block;
padding-top: 12px;
height:80px;
text-align:center;
}
.apps_section_icon img{
width: 70px;
height: 70px;
}
.apps_section_link{
float: left;
width: 100%;
text-align: center;
line-height: 18px;
font-size: 14px;
margin-top: 13px;
color:#333;
font-weight:bold;
font-family:"microsoft yahei";
}
.apps_section_describe{
width:100%;
word-break:break-all;
word-wrap:break-word;
text-align:left;
margin-top: 4px;
float: left;
}
.apps_arrow_left,.apps_arrow_right{
position: absolute;
width: 17px;
height: 39px;
top:17px;
}
.apps_arrow_left{
left:-11px;
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/apps_arrow_left.png) no-repeat 0 0;
}
.apps_arrow_right{
right: 29px;
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/apps_arrow_right.png) no-repeat 0 0;
}
.link_bar{
width: 100%;
min-height: 192px;
background-color: #f6f6f6;
border-bottom: 1px solid #d5d5d5;
background: url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/link_bar_bg.png) right 0 no-repeat;
}
.link_bar_content{
margin:0 auto;
width: calc(100% - 240px);
}
.link_box_left{
float: left;
margin-top: 25px;
min-height:122px;
width:calc(100% - 490px);
border-right: 1px solid #dedede;
}
.link_box_right{
float: right;
height:122px;
width:489px;
margin-top: 25px;
background:url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/code_01.png) no-repeat 30px 6px;
}
.link_box_middle{
float: left;
margin-top: 25px;
padding:0 30px 0 29px;
border-right: 1px solid #dedede;
}
.link_title_bar{
float: left;
width: 100%;
}
.link_title_bar .link_title{
font-size: 24px;
color:#000;
width: 100%;
display: block;
}
.link_title_bar font{
font-size: 14px;
color:#afafaf;
width: 100%;
display: block;
}
.friend_links_bar{
float: left;
width: calc((100% - 60.01px) / 3);
margin-top: 12px;
border-right:1px dashed #dedede;
margin-right:30px;
box-sizing:border-box;
}
.friend_links_bar:nth-child(3n){
margin-right:0;
border-right:0;
}
.friend_links_bar font{
color:#004f9a;
font-size: 14px;
line-height: 20px;
display: block;
margin-top: 8px;
}
.friend_links_bar a{
color:#999999;
font-size: 12px;
line-height: 20px;
display: block;
}
.bnu_weixin{
float: left;
width: 88px;
}
.bnu_weixin img{
margin-top:25px;
}
.bnu_weixin span{
display: block;
width: 100%;
font-size: 14px;
color:#000;
word-wrap:break-word;
margin-top: 5px;
}
.two_code{
margin:28px 0 0 20px;
}
.two_code_01{
float: left;
margin: 33px 0 0 40px;
}
/*弹出页*/
.popup_page{
float: left;
background-color:#fff;
padding: 0 10px 6px;
}
.popup_bar{
float: left;
width: 100%;
}
.popup_hint_outside{
float:left;
width:100%;
border-radius:10px;
margin-top:39px;
}
.popup_green_bg{
background-color:#dbe2c0;
}
.popup_green_bg .popup_hint_inside{
background-color:#ecf2d3;
}
.popup_green_bg .popup_statement{
color:#9cae4e;
}
.popup_red_bg{
background-color:#efcbc3;
}
.popup_red_bg .popup_hint_inside{
background-color:#f7dfdb;
}
.popup_red_bg .popup_statement{
color:#c76c59;
}
.popup_yellow_bg{
background-color:#f6edbc;
}
.popup_yellow_bg .popup_hint_inside{
background-color:#fcf5d1;
}
.popup_yellow_bg .popup_statement{
color:#ae942c;
}
.popup_hint_inside{
float:left;
margin-left:47px;
border-radius:0 10px 10px 0;
min-height:30px;
}
.popup_hint_icon{
float:left;
background-repeat:no-repeat;
background-position:0 0;
width:81px;
height:84px;
margin:-39px 0 0 -57px;
}
.popup_icon_01{
background-image:url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/popup_icon_01.png);
}
.popup_icon_02{
background-image:url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/popup_icon_02.png);
}
.popup_icon_03{
background-image:url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/popup_icon_03.png);
}
.popup_statement{
float:left;
width:167px;
line-height:22px;
font-size:14px;
word-wrap:break-word;
word-break:break-all;
margin:10px 0 0 0;
padding-bottom:11px;
font-family:"microsoft yahei";
}
/*-----V7按钮 开始-----*/
[class*="n_btn_0"]{
float: left;
border-style: solid;
border-width: 1px;
cursor: pointer;
overflow: visible;/*IE6/7*/
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
}
[class*="n_btn_0"]:active{
box-shadow: 0 2px 4px 0px rgba( 0, 0, 0, 0.15 ) inset;
}
.n_btn_01{
height: 30px;
padding: 0 14px;
border-radius: 6px;
}
.btn_style_01{
background-color: #39adae;
border-color: #309591;
color: #fff;
}
.notice_bar{
float: left;
height:40px;
width: 100%;
}
/*媒体查询 开始*/
/*第三方登录 START*/
.new-login-way{
width:calc(100% - 60px);
float: left;
margin:12px 20px 0 30px;
}
.new-login-way .login-way-title{
width:100%;
float: left;
margin:9px 0px 9px;
}
.new-login-way .line{
width:70px;
height:1px;
background-color:#edeeee;
float: left;
margin:12px 0 0;
display:block;
}
.new-login-way .title{
float: left;
text-align:center;
width:calc(100% - 140px);
font-size:14px;
color:#999;
line-height:24px;
height:24px;
display:block;
}
.login-way-btn{
width:100%;
}
.login-way-btn a{
width:calc(50% - 10px);
float:left;
border:1px solid #dedede;
border-radius:7px;
height:36px;
display:block;
background-color:#fff;
box-sizing:border-box;
line-height:34px;
text-align:left;
color:#39427d;
font-size:14px;
padding:0 0 0 50px;
text-decoration: none;
}
.login-way-btn a.wechat{background:#fff url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/wechat-icon.png) no-repeat 20px 9px;}
.login-way-btn a.qq-login{background:#fff url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/qq-icon.png) no-repeat 20px 9px;}
/*第三方登录 END*/
@media screen and (max-width:1365px){
.header_02_space,.login_space_content,
.apps_section_content,.link_bar_content,
.footer_inside{width:calc(100% - 40px);}
}
@media screen and (max-width:1250px){
.link_box_left{
width:calc(100% - 390px);
}
.link_box_right{
width:380px;
background:url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/code_02.png) no-repeat 30px 6px;
}
}
.login-way-btn a.wechat{background:#fff url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/wechat-icon.png) no-repeat 27px 9px;}
.login-way-btn a.qq-login{background:#fff url(https://wvpn.qust.edu.cn/http/77726476706e69737468656265737421f9e7408f347e79456d1cc7a99c406d3609/tpass/comm/image/qq-icon.png) no-repeat 27px 9px;}
五题
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>判断是否是数字</title>
</head>
<body>
<input type="text" id="txtname1" class="inputText">
<script>
var inputText = document.querySelector(".inputText");
inputText.addEventListener('input', function(){
if(isNum(inputText.value))
{
console.log("It is a number.");
}
else
{
console.log("It's not a number.");
}
});
function isNum(num)
{
var retNum = /^[0-9]*$/;
return retNum.test(num);
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>判断是否是数字大小写字母的混合</title>
</head>
<body>
<input type="text" id="txtname2" class="inputText">
<script>
var inputText = document.querySelector(".inputText");
inputText.addEventListener('input', function(){
if(isNum(inputText.value))
{
console.log("True.");
}
else
{
console.log("False.");
}
});
function isNum(num)
{
var retNum = /^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)(?=.*?[#@*&.]).*$/
return retNum.test(num);
}
</script>
</body>
</html>
测试直接运行然后按F12呼出开发者面板输入字符测试即可
六题
import java.util.Objects;
//设计实体类
public class GoodEntity {
//定义商品编号
private int itemNumber;
//定义商品名称
private String productName;
//定义商品产地
private String productOrigin;
//定义商品进货价格
private int purchasePrice;
//定义商品零售价格
private int retailPrice;
//定义商品存货数量
private int inventoryQuantity;
//定义商品进货日期
private String purchaseDate;
//有参构造器
public GoodEntity(int itemNumber, String productName, String productOrigin, int purchasePrice, int retailPrice, int inventoryQuantity, String purchaseDate) {
this.itemNumber = itemNumber;
this.productName = productName;
this.productOrigin = productOrigin;
this.purchasePrice = purchasePrice;
this.retailPrice = retailPrice;
this.inventoryQuantity = inventoryQuantity;
this.purchaseDate = purchaseDate;
}
//get&set方法
public int getItemNumber() {
return itemNumber;
}
public void setItemNumber(int itemNumber) {
this.itemNumber = itemNumber;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductOrigin() {
return productOrigin;
}
public void setProductOrigin(String productOrigin) {
this.productOrigin = productOrigin;
}
public int getPurchasePrice() {
return purchasePrice;
}
public void setPurchasePrice(int purchasePrice) {
this.purchasePrice = purchasePrice;
}
public int getRetailPrice() {
return retailPrice;
}
public void setRetailPrice(int retailPrice) {
this.retailPrice = retailPrice;
}
public int getInventoryQuantity() {
return inventoryQuantity;
}
public void setInventoryQuantity(int inventoryQuantity) {
this.inventoryQuantity = inventoryQuantity;
}
public String getPurchaseDate() {
return purchaseDate;
}
public void setPurchaseDate(String purchaseDate) {
this.purchaseDate = purchaseDate;
}
//重写equals和hashCode方法
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GoodEntity Goodpo = (GoodEntity) o;
return itemNumber == Goodpo.itemNumber && purchasePrice == Goodpo.purchasePrice && retailPrice == Goodpo.retailPrice && inventoryQuantity == Goodpo.inventoryQuantity && Objects.equals(productName, Goodpo.productName) && Objects.equals(productOrigin, Goodpo.productOrigin) && Objects.equals(purchaseDate, Goodpo.purchaseDate);
}
@Override
public int hashCode() {
return Objects.hash(itemNumber, productName, productOrigin, purchasePrice, retailPrice, inventoryQuantity, purchaseDate);
}
@Override
public String toString() {
return "GoodEntity{" +
"itemNumber=" + itemNumber +
", productName='" + productName + '\'' +
", productOrigin='" + productOrigin + '\'' +
", purchasePrice=" + purchasePrice +
", retailPrice=" + retailPrice +
", inventoryQuantity=" + inventoryQuantity +
", purchaseDate='" + purchaseDate + '\'' +
'}';
}
}
Service:
public interface GoodService { public static int sumGood(int[] array) { return 0; }}
ServiceImpl:
public class GoodServiceImpl implements GoodService { public static int sumGood(int[] array) { int i = 0; if(array.length > 0){ for(int arr : array){ i += arr; } }return i; } public static void main(String[] args) { int[] arry = {1, 2, 3, 4}; System.out.println(sumGood(arry)); }}

浙公网安备 33010602011771号