- 博客(9)
- 收藏
- 关注
翻译 Numpy array数据的增、删、改、查
准备工作: 增、删、改、查的方法有很多很多种,这里只展示出常用的几种。 >>> import numpy as np >>> a = np.array([[1,2],[3,4],[5,6]])#创建3行2列二维数组。 >>> a array([[1, 2], [3, 4], [5, 6]]) >>&...
2018-12-18 19:13:48
527
转载 js-DataTables参数配置详解
/*------------------------------------------------Feature------------------------------------------------*/ $(document).ready(function() { $('selector').dataTable({ /* * 默认为...
2018-12-03 10:29:56
1974
原创 js IndexedDB的入门实例
/*jshint esversion: 6 */ /*===========================================================================+ | 创建IDB | +================...
2018-11-19 14:59:53
1170
原创 PyQt5-进度条
self.pBar = QtWidgets.QProgressBar(self.centralwidget) 显示效果相关 是否可见:self.pBar.setVisible(bool) # False/True 右侧值是否可见 : setTextVisible(bool) def onStart(self): # 重写定时器的onStart方法 ...
2018-09-12 14:14:34
1644
原创 PyQt5-环境搭建
Mac搭建1、安装homebrew2、terimal :brew install python33、terimal :brew install PyQt5 # 同时会自动安装qt4、与pyCharm建立交互 # MacOS,如果通过 terminal 安装 PyQt5,Designer安装路径在:/usr/local/Cellar/qt/X.X/libexec/前提:1、cmd:pip3 inst...
2018-05-10 07:30:06
988
原创 PyQt5-将py转化为exe
# coding:utf-8 # 将当前的pycode转化为exe,需安装PyQt, pyinstaller import os import os.path # Ui文件所在路径 dir = './' def code2exe(pyfile): cmd = 'pyinstaller -F -w -D {pyfile}'.format(pyfile = pyfile) # -F 打包为单独...
2018-05-09 23:15:03
1973
原创 Python常用代码
# 获得当前用户桌面路径 import winreg def getDesktop(): key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r'Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders') return winreg.QueryValueEx(key,...
2018-05-09 23:13:24
793
原创 PyQt5-将ui文件转化为pycode
# coding:utf-8 # 将当前目录下的所有ui文件转化为pycode import os import os.path # Ui文件所在路径 dir = './' # 列出目录下所有的ui文件 def listUiFile(): list = [] files = os.listdir(dir) for filename in files: if os.path.spli...
2018-05-09 23:10:58
255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人