循环结构 循环需要有进入条件和退出条件,如果没有退出条件,则就会一直循环下去 for 变量 in 列表;do 循环体 done 生成列表及示例 {1..100}:生成1到100的整数列表 `command`:使用命令生成列表 Example1: #!/bin/bash # declare -i SU ...
分类:
系统相关 时间:
2019-12-07 11:00:37
阅读次数:
99
问题描述: win7系统中右键新建没有写字板 解决方案: 1. 按下Win+R后输入regedit打开注册表. (可以使用组合键ALT+ 键盘上的左键, 对展开的注册表项进行折叠方可查看) 2.定位到:HKEY_CLASS_ROOT\.rtf 3. 右键新建能查看到word, word后缀名是.do ...
声明式:function fn() { //do something } 函数表达式: let fn = function () { //do something }构造函数: function Person(name,age){ this.name=name this.age=age } let ...
分类:
Web程序 时间:
2019-12-06 13:38:28
阅读次数:
118
一、主服务器配置 1、配置文件my.cnf的修改 [root@localhost mysql]# vim /etc/my.cnf #在[mysqld]中添加:server-id=1log_bin=master-binlog_bin_index=master-bin.indexbinlog_do_db ...
分类:
数据库 时间:
2019-12-06 13:26:21
阅读次数:
97
Given a binary tree, return the inorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iteratively ...
分类:
移动开发 时间:
2019-12-05 22:48:52
阅读次数:
215
去年 kaggle 比赛的代码时 https://www.kaggle.com/artgor/quick-and-dirty-regression ,出现如下报错,全网都找不到答案。 特此记下。 LightGBMError: Do not support special JSON character ...
分类:
Web程序 时间:
2019-12-05 22:12:26
阅读次数:
976
微擎form表单进行GET提交时,要传递 name 分别为 c , a , m , do 的值 例如: <form action="{php echo $this->createWebUrl($filename, array('op' => 'display'))}" class="form-inl ...
分类:
其他好文 时间:
2019-12-05 11:39:16
阅读次数:
196
使用while循环输出1-10 int i=1; while(i<=10) { System.out.println(i); i++; } do{ 循环体; }while(布尔表达式); public class ForTest06{ //除它自身和1以外没有其他除数。 public static ...
分类:
其他好文 时间:
2019-12-04 23:34:29
阅读次数:
158
在IntelliJ Idea中HTML格式化时,默认以及下的以及标签都不会缩进。 解决方法:editor code style HTML other Do not indent children of 删掉这几项就可以了。 ...
分类:
Web程序 时间:
2019-12-04 10:34:57
阅读次数:
123
杨乾成 201730500302 一、1到1000的平方和 这道题比较简单,就不加赘述了。代码如下: 1 #!/bin/bash 2 i=1 3 count=0 4 while [ $i -le 1000 ] 5 do 6 let count+=i*i 7 let i++ 8 done 9 echo ...
分类:
系统相关 时间:
2019-12-04 01:35:37
阅读次数:
196