自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 js方法描述

方法描述anchor() 创建 HTML 锚。big() 用大号字体显示字符串。blink() 显示闪动字符串。bold() 使用粗体显示字符串。charAt() 返回在指定位置的字符。charCodeAt() 返回在指定的位置的字符的 Unicode 编码。concat() 连接字符串。fixed() 以打字机文本显示字符串。fontcolor() 使用指定的颜色来显示字符串。fontsize() 使用指定的尺寸来显示字符串。fromCharCode() 从字符编...

2022-04-12 17:14:02 112

原创 java中实现计算分数比例

public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("请输入总人数"); int num = sc.nextInt(); int a=0; for (int i = 1; i <= num; i++) { System.out.println("请输入第"+i+"位的成绩"); int score = sc.nextInt().

2022-04-06 16:01:26 901

原创 在java中实现数组倒序

public static void main(String[] args) { int [] arr={12,34,22,45,67,11}; for (int i = 0; i < arr.length-1; i++) { for (int j = 0; j < arr.length-1-i; j++) { if (arr[j]<arr[j+1]) { int temp=arr[j]; arr[j]=arr[j+1]; arr[j+.

2022-04-06 15:55:06 5106 1

原创 在java中用双重for循环实现乘法口诀表

for (int i = 1; i < 10; i++) { for (int j = 1; j <=i; j++) { System.out.print(i+"*"+j+"="+(i*j)+" "); } System.out.println();}1*1=1 2*1=2 2*2=4 3*1=3 3*2=6 3*3=9 4*1=4 4*2=8 4*3=12 4*4=16 5*1=5 5*2=10 5*3=15 5*4=20 5...

2022-04-04 20:09:31 292

原创 java 中数字塔

System.out.println("你想要几行数字"); int num1=sc.nextInt(); for (int m = 1; m <= num1; m++) { for (int z = 1; z <= num1-m; z++) { System.out.print(" "); } for (int b = 1; b <=(m*2)-1; b++) { System.out.print(m); } System.ou.

2022-04-01 15:19:58 754

原创 java实现如下效果

public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("请输入数字"); int num = sc.nextInt(); for (int i = 0; i <=num ; i++) { System.out.println(i+"+"+(num-i)+"...

2022-03-31 08:55:10 454

原创 Java中使用while,do-while,for实现100以内的偶数和

//100以内偶数之和 int i = 0; int he = 0; //while while(i <= 100){ if(i % 2 == 0){ he=he+i; System.out.println(i); } i++; } System.out.println(...

2022-03-30 16:47:47 1709

原创 javascript部分

基本数据类型:五种 number(数字),String(字符串),boolen (布尔值(只有true和false)),unll(空值),undefinde(未赋值)变量的两种声明方式:1.var arry;arry=12(先声明变量在赋值)var arry=12(在声明变量时赋值)实现两个变量交换var a=12var b=2方法:var c (定义一个空值)c=a (此时a=c=12,b=2)把a赋值给c,c之前为空白现在为12a=b (此时a=2 ...

2022-03-29 09:36:47 1050

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除