自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

翻译 Numpy array数据的增、删、改、查

准备工作:增、删、改、查的方法有很多很多种,这里只展示出常用的几种。>>> import numpy as np>>> a = np.array([[1,2],[3,4],[5,6]])#创建3行2列二维数组。>>> aarray([[1, 2],       [3, 4],       [5, 6]])>>&...

2018-12-18 19:13:48 493

转载 js-DataTables参数配置详解

​ /*------------------------------------------------Feature------------------------------------------------*/$(document).ready(function() { $('selector').dataTable({ /*   *  默认为...

2018-12-03 10:29:56 1851

原创 js IndexedDB的入门实例

/*jshint esversion: 6 *//*===========================================================================+| 创建IDB |+================...

2018-11-19 14:59:53 1122

原创 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 1605

转载 Git教程

http://www.worldhello.net/gotgithub/index.html

2018-08-31 10:59:18 95

原创 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 953

原创 PyQt5-将py转化为exe

# coding:utf-8# 将当前的pycode转化为exe,需安装PyQt, pyinstallerimport osimport os.path# Ui文件所在路径dir = './'def code2exe(pyfile): cmd = 'pyinstaller -F -w -D {pyfile}'.format(pyfile = pyfile) # -F 打包为单独...

2018-05-09 23:15:03 1953

原创 Python常用代码

# 获得当前用户桌面路径import winregdef 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 756

原创 PyQt5-将ui文件转化为pycode

# coding:utf-8# 将当前目录下的所有ui文件转化为pycodeimport osimport 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 233

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除