07 2023 档案

摘要:方法一:绝对值 if __name__ == "__main__": """run""" print("负数取反-绝对值:{}".format(abs(-28))) print("正数数取反-绝对值:{}".format(abs(32) * -1)) 结果: 方法二:numpy库 # coding: 阅读全文
posted @ 2023-07-28 10:19 Phoenixy 阅读(2253) 评论(0) 推荐(0)
摘要:使用to_char处理日期 格式代码 语法 TO_CHAR(date,’格式’); -- SQL中不区分大小写 用法 to_char(sysdate,'q') 季 to_char(sysdate,'yyyy')年 to_char(sysdate,'mm')月 to_char(sysdate,'dd' 阅读全文
posted @ 2023-07-26 15:27 Phoenixy 阅读(230) 评论(0) 推荐(0)
摘要:简单日志打印 阅读全文
posted @ 2023-07-25 10:49 Phoenixy 阅读(53) 评论(0) 推荐(0)
摘要:文件-设置-编辑器-检查-校对-拼写错误 取消勾选 阅读全文
posted @ 2023-07-19 15:39 Phoenixy 阅读(1383) 评论(0) 推荐(0)
摘要:表增加注释 comment on table 表名 is '表注释"; 列增加注释 comment on column 表.列 is '列注释'; 读取表注释 select * from user_tab_comments where comments is not NULL AND TABLE_N 阅读全文
posted @ 2023-07-19 10:29 Phoenixy 阅读(218) 评论(0) 推荐(0)
摘要:查询当前日期的所在月的天数 # coding:utf-8 import datetime import calendar from loguru import logger as logs class ca: @staticmethod def days_of_the_month(): """查询当 阅读全文
posted @ 2023-07-18 14:13 Phoenixy 阅读(501) 评论(0) 推荐(0)