上一页 1 2 3 4 5 6 7 8 9 10 ··· 27 下一页
摘要: 在年前一周,我接受了一项需求:目标Postgre系统有三张表,用户表Customer,最大有两百万数据;标记表tag,一开始定为10000个,后来改为1600个;两者的连接表Customer_Tag,这个多,最多时为2,000,000*1600=32,0000,0000条。现在需要将每个用户拥有的t 阅读全文
posted @ 2022-01-29 22:17 不朽的飞翔 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 代码: #encoding=utf-8 arr=[1,2,45,543,43,5435,454,3,0] for i in arr: print("{:0>4d}".format(i)) 输出: C:\hy\py>python 06-leftZero.py 0001 0002 0045 0543 0 阅读全文
posted @ 2022-01-25 20:54 不朽的飞翔 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 命令行参数设置有时比用VI进文本模式去修改有优势。 代码: #encoding=utf-8 import sys min=sys.argv[1] max=sys.argv[2] print("Min={0} max={1}".format(min,max)) 输出: C:\hy\py>python 阅读全文
posted @ 2022-01-25 20:49 不朽的飞翔 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 代码: #encoding=utf-8 import datetime d=datetime.datetime.today() dateStr=d.strftime('%Y-%m-%d_%H:%M:%S') print("Current time=",dateStr) 输出: C:\hy\py>py 阅读全文
posted @ 2022-01-25 20:44 不朽的飞翔 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 代码: import time start = time.time() # your business code here elapsed = (time.time() - start) print("Time used:",round(elapsed,3)) # 自行决定保留小数数位 END 阅读全文
posted @ 2022-01-25 04:38 不朽的飞翔 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1.300715 凯伦股份2.600251 冠农股份3.300114 中航电测4.603588 高能环境5.600176 中国巨石6.002141 贤丰控股7.002724 海洋王8.603667 五洲新春9.300421 力星股份10.601369 陕鼓动力11.300488 恒锋工具12.300 阅读全文
posted @ 2022-01-23 08:37 不朽的飞翔 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 如果没有安装cx_Oracle请参考:【Python】连接到Oracle数据库的前奏:安装cx_Oracle - 不朽的飞翔 - 博客园 (cnblogs.com) 代码: #encoding=utf-8 import cx_Oracle conn=cx_Oracle.connect('luna', 阅读全文
posted @ 2022-01-23 08:29 不朽的飞翔 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 我的Python版本:3.10.2 cx_Oracle所在网页:https://pypi.org/project/cx-Oracle/#files 我下载的版本:cx_Oracle-8.3.0-cp310-cp310-win_amd64.whl 安装详情: C:\hy\software\hp_m11 阅读全文
posted @ 2022-01-23 08:27 不朽的飞翔 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 代码: <!DOCTYPE html> <html lang="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <head> <title>圆内摆线模拟</title> <style type= 阅读全文
posted @ 2022-01-20 18:57 不朽的飞翔 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 请见代码: <!DOCTYPE html> <html lang="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <head> <title>JS中亦有哈希表</title> <style t 阅读全文
posted @ 2022-01-18 19:12 不朽的飞翔 阅读(109) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 27 下一页