![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
随笔
你好我是安鑫
这个作者很懒,什么都没留下…
展开
-
python针对项目生成requirements.txt
pip freeze > requirements.txt #会将环境中的依赖包全都加入推荐方法:pip install pipreqspipreqs . --encoding=utf8 --force#--encoding=utf8为使用utf8编码,不然windows系统 会报 UnicodeDecodeError: 'gbk' codec can't...转载 2020-04-25 21:32:36 · 156 阅读 · 0 评论 -
笔记|斐波那契数列|相邻两项相除|float保留固定位数
1. 斐波那契数列指的是这样一个数列 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...数列第一项和第二项是1, 从第三项开始,每一项都等于前两项之和。代码如下(一下方法为求取第i位 斐波那契数列指)public static int getFs(int i) { int j = 0; switch (i) { case 0:原创 2017-02-04 22:43:32 · 995 阅读 · 1 评论 -
Java执行cmd命令并接收返回结果
String command="ipconfig -all"; String s="IPv4"; String line = null; StringBuilder sb = new StringBuilder(); Runtime runtime = Runtime.getRuntime(); try { Process process = runtime.exec(co原创 2017-02-07 09:23:27 · 29582 阅读 · 2 评论 -
IntelliJ IDEA控制台乱码
今天做测试时发现使用System.out.println()做输出时控制台输出乱码但是从数据库读取的数据中文正常.百度后通过删除项目文件夹下.idea文件夹encodings.xml中除UTF-8其余编码集恢复.错误原因有可能是误点了软件右下角的编码格式原创 2017-02-08 18:25:25 · 1365 阅读 · 0 评论 -
idea错误 Error:Abnormal build process termination:
Error:Abnormal build process termination: 错误 关闭电脑防火墙即可恢复原创 2017-02-09 18:43:50 · 13368 阅读 · 12 评论 -
阿里巴巴Java开发规范手册
阿里巴巴 JAVA 开发手册 1 / 32 Java 开发手册 版本号 制定团队 更新日期 备 注 1.0.0 阿里巴巴集团技术部 2016.12.7 首次向 Java 业界公开 一、编程规约 (一) 命名规约 1. 【强制】所有编程相关命名均不能以下划线或美元符号开始,也不能以下划线或美元符号结束。 反例: _name / __name / $Obj转载 2017-02-19 17:05:04 · 5618 阅读 · 0 评论