Ruibus###

05 2022 档案

摘要:CSS 为定位提供了一些属性,利用这些属性,可以建立列式布局。 css定位的几种方式: 1、static(静态定位): 1、static(静态定位):默认值。没有定位,当我们没有指定定位方式的时候,这时默认的定位方式就是static, 也就是按照文档的书写布局自动分配在一个合适的地方,这种定位方式用 阅读全文
posted @ 2022-05-31 11:03 Ruibus 阅读(28) 评论(0) 推荐(0) 编辑
摘要:杨辉三角形 public class TestYang1 { public static void main(String[] args) { int len = 10;//定义数组长度,也就是杨辉三角的长度 int[][] arr = new int[len][len];//定义6行6列的二维数组 阅读全文
posted @ 2022-05-22 08:28 Ruibus 阅读(31) 评论(0) 推荐(0) 编辑
摘要:常用Ascii码 小写字母65-90 大写字母97-122 阅读全文
posted @ 2022-05-21 22:44 Ruibus 阅读(90) 评论(0) 推荐(0) 编辑
摘要:筛法求素数 先建立一个判定数组a[]记录结果长度为n ,初始全为false,为素数 遍历数组,a[i] for(int i=0;i<n;i++){ if(!a[i]){//如果这个数为素数那么他的倍数一定不是素数 for(int j=2*i;j<=n;j=j+i){ a[j]=true; } }} 阅读全文
posted @ 2022-05-21 22:26 Ruibus 阅读(8) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示