
python
一个充满激情的猴子
熟练C语言,现在正在学习python ,lisp等语言
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python 如何使用hex将int 转为16进制,然后高位补0
def time_covert(year,month,day,hour,minute,sec): print(hex(year)[2:].zfill(4)+hex(month)[2:].zfill(2)+hex(day)[2:].zfill(2)+hex(hour)[2:].zfill(2)+hex(minute)[2:].zfill(2)+hex(sec)[2:].zfill(2)) # 真妙 time_covert(2020,5,17,0,0,0) 07e40511000000 ...原创 2022-02-12 18:31:02 · 2191 阅读 · 0 评论 -
2021-04-10
python 访问access import pyodbc import time import _thread import datetime DBfile = "E:\WorkTool\OOP脚本\平台模拟表\平台模拟表\Data.mdb" # 数据库文件需要带路径 print(DBfile) conn = pyodbc.connect(r"DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=" + DBfile + ";Uid=;Pwd=;")原创 2021-04-10 20:07:27 · 102 阅读 · 0 评论 -
取代matlab, Linux下科学计算环境的搭建
不久前,学姐发给我一程序,我开虚拟机跑matlab算了一边,虽然我给了虚拟的XP 512M的内存,还是慢的要命。足足等了30s才出来结果。这还是只算了一遍,如果是算两层循环,96*2遍的话,我去新街口溜达一圈再回来也算不好。 可见,用虚拟机跑matlab的孩子你伤不起。 之前阿诺推荐我去看看numpy,当时没放在心上,现在想来就很有必要了。废话不说了,下面开始正题。原创 2017-03-26 17:12:21 · 581 阅读 · 0 评论 -
linux 下普通用户python-pandas模块不能使用的问题
pandas 模块不能使用的问题,>>> import pandas as pd Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pandas >>> import pandas as pd >>>原创 2017-05-30 11:31:11 · 5860 阅读 · 0 评论 -
python 之 matplotlib 作图
Python 之 matplotlib 作图原创 2017-07-11 10:06:21 · 976 阅读 · 0 评论