将博客搬至CSDN
将博客搬至CSDN
将博客搬至CSDN
有时候,我们用调试工具查看别人的网站时,经常看到 X-Powered-By:PHP/7.1.8 这样的一行和 Server:Apache/2.4.27 (Win32) OpenSSL/1.0.2l PHP/7.1.8 这样的一行 在大多数情...
一、使用 java.math.BigDecimal 类 public static String format1(double value) { BigDecimal bd = new BigDecimal(value); bd = bd....
with open(file,"r") as f: data = json.load(f) 如果报错 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 将with open(file) as...
首先 IDEA -plugins搜索插件GenerateAllSetter 安装后重启 使用方法 首先写一个 Object A = new Object();然后 指针放到左边Object上,option + 回车
php中文转gbk的方法:首先找到并打开相应的PHP文件;然后通过“$fileName=iconv("UTF-8", "gbk", $fileName);”将其转换为gbk的中文编码格式即可。
这篇文章主要介绍了PHP保留两位小数的几种方法,需要的朋友可以参考下 代码如下所示: $num = 10.4567; //第一种:利用round()对浮点数进行四舍五入 echo round($num,2); //10.46 /...
yii2 中 linslin\Curl的基本使用 一、get请求: 1.1 简单get请求 use linslin\yii2\curl; $curl = new curl\Curl(); //get http://example...
git config --global --add safe.directory 重装系统前的某个代码仓库
参考网址:https://uniapp.dcloud.net.cn/collocation/manifest.html#devserver 网上写的 设置->运行配置->内置web服务器端口(重启后生效) 改了并不会生效还是需要...