码迷,mamicode.com
首页 >  
搜索关键字:hello word    ( 34862个结果)
Promise(三)
1. 事件循环和 Promise https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/EventLoop https://zhuanlan.zhihu.com/p/33058983 const s = new Date().getSecon ...
分类:其他好文   时间:2020-07-03 12:07:32    阅读次数:62
js 时间格式化
// 对Date的扩展,将 Date 转化为指定格式的String // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) // 例子: // (new Date ...
分类:Web程序   时间:2020-07-03 10:57:51    阅读次数:79
MySQL数据库使用报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
今天MySQL数据库,在使用的过程中一直报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 之所以出现这个问题是因为用户可以登录到 ...
分类:数据库   时间:2020-07-03 10:51:19    阅读次数:59
Java虚拟机是怎么实现synchronized的?
本文已收录GitHub,更有互联网大厂面试真题,面试攻略,高效学习资料等在Java程序中,我们可以利用synchronized关键字来对程序进行加锁。它既可以用来声明一个synchronized代码块,也可以直接标记静态方法或者实例方法。当声明synchronized代码块时,编译而成的字节码将包含monitorenter和monitorexit指令。这两种指令均会消耗操作数栈上的一个引用类型的元
分类:编程语言   时间:2020-07-03 10:27:43    阅读次数:46
HelloWorld
HelloWorld 随便新建一个文件夹,存放代码 新建一个java文件 文件后缀名为.java Hello.java 【注意点】系统可能没有显示文件后缀名,我们需要手动打开 编写代码 public class Hello{ public static void main(String[] args ...
分类:其他好文   时间:2020-07-03 09:13:29    阅读次数:69
005-LNMP环境连接Mysql测试
背景介绍: 用户通过浏览器访问Nginx -> html下的mysql.php文件,去连接Mysql数据库的一个测试 正文: 1.检查确保nginx、php-fpm、mysql的服务都是正常启动的 2.mysql.php测试Mysql的代码 //这里要说明一下,PHP5和PHP7连接Mysql的区别 ...
分类:数据库   时间:2020-07-03 01:13:42    阅读次数:106
openpyxl 操作文件
pip install openpyxl 写文件 from openpyxl import Workbook wb = Workbook() # grab the active worksheet ws = wb.active # or # ws = wb.create_sheet("Sheet1" ...
分类:其他好文   时间:2020-07-03 01:07:20    阅读次数:87
sonarqube扫描 c#项目 显示 this project is empty 解决扫描结果为空的问题
sonar7 以后版本,默认的 sonar-scanner 加 sonar-project.properties 配置文件,扫描c#的项目回出现,扫描不报错,但是显示结果为空. jenins 在linux 环境中要想扫描 c#项目必须使用 dotnet-sonarscanner 扫描 1.1 安装 ...
分类:Windows程序   时间:2020-07-02 21:58:12    阅读次数:203
python-拆包、交换变量的值
拆包 # 定义一个列表 my_list = [1, 3.14, "hello", True] print(my_list[1]) # 可以获取列表中元素的值 但是可读性不强 # 拆包 num, pi, my_str, my_bool = my_list print(pi) print(my_bool ...
分类:编程语言   时间:2020-07-02 21:41:16    阅读次数:75
Go 文件 读写
可以从文件读写,也可以从标准输入流读,写到控制台 import ( "fmt" "bufio" "os" ) func main() { var s string reader := bufio.NewReader(os.Stdin) fmt.Printf("输入>> ") s,_ = reader ...
分类:其他好文   时间:2020-07-02 19:57:01    阅读次数:60
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!