- 2024-05-06Oracle查询去掉小数后面无效0
select50.00qty,trim(trailing'0'from50.00)qty0,to_char(50.00,'FM9999.999')qty1,trim(trailing'.'fromto_char(50.00,'FM9999.999'))qty2,rtrim(to_char(50.00,'fm9990.99'),'.')qty3f
- 2024-04-16自定义pre-commit 开发格式简单说明
内容来自官方文档,主要是简单说明下,方便学习约定git项目需要包含.pre-commit-hooks.yaml文件,里边内容格式如下-id:trailing-whitespacename:TrimTrailingWhitespacedescription:Thishooktrimstrailingwhitespace.entry:trailing-w
- 2023-12-03python 解压可迭代对象赋值给多个变量
1.2解压可迭代对象赋值给多个变量问题如果一个可迭代对象的元素个数超过变量个数时,会抛出一个ValueError。那么怎样才能从这个可迭代对象中解压出N个元素出来?解决方案Python的星号表达式可以用来解决这个问题。比如,你在学习一门课程,在学期末的时候,你想统计下家庭作业
- 2023-08-18SyntaxError: /xxxx.vue: Unexpected token, expected “,“,[object Promise]export { render, staticRende}
本地老工程vue2.7.x+webpack4在升级webpack5的时候遇启动和打包报错:SyntaxError:SyntaxError:/xxxxx.vueUnexpectedtoken,expected","(1:8)>1|[objectPromise]|^2|export{render,staticRenderFns}最后才发现是prettier导致的。推荐看
- 2023-06-022023-06-02 hexo推送至github
第一步:在你的hexo博客根目录打开终端输入以下命令:npminstallhexo-deployer-git--save第二步:配置根目录的_config.yml文件:#URL##Setyoursiteurlhere.Forexample,ifyouuseGitHubPage,seturlas'https://username.github.io/project'url:https://你的gi
- 2023-03-24JavaScript ES modules import and export with trailing commas All In One
JavaScriptESmodulesimportandexportwithtrailingcommasAllInOneJavaScript最佳实践export+trailingcommasexport{module1,module2,//..
- 2023-02-01代码规范配置editorconfig
root=true[*]#表示所有文件适用charset=utf-8#设置文件字符集为utf-8indent_style=space#缩进风格indent_size=2#缩进大小end_of_line=lf#控制
- 2022-12-01lintcode:Trailing Zeros
15:00StartWriteanalgorithmwhichcomputesthenumberoftrailingzerosinnfactorial.Example11!=39916800,sotheoutshouldbe2ChallengeO(logN)time
- 2022-10-13[RxJS] AuditTime & throttleTime
auditTime:import{fromEvent}from'rxjs';import{auditTime,map}from'rxjs/operators';constclick$=fromEvent(document,'click');click$.pipe(