自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 关键字参数

        可变参数允许你传入0个或任意个参数,这些可变参数在函数调用时自动组装为一个tuple。而关键字参数允许你传入0个或任意个含参数名的参数,这些关键字参数在函数内部自动组装为一个dictdef person(name,age,**kw): print('name...

2018-09-30 14:31:24 296

原创 关键字参数

关键字参数 可变参数允许你传入0个或任意个参数,这些可变参数在函数调用时自动组装为一个tuple。而关键字参数允许你传入0个或任意个含参数名的参数,这些关键字参数在函数内部自动组装为一个dictdef person(name,age,**kw): p...

2018-09-30 14:31:00 148

原创 python 可变参数

python 可变参数 def add1(*data): sum = 0 for i in data: sum = sum + i return sumprint( add1(1,2,3,4,5) )print( add1(*[1,2...

2018-09-30 14:06:00 68

原创 python 可变参数

def add1(*data): sum = 0 for i in data: sum = sum + i return sumprint( add1(1,2,3,4,5) )print( add1(*[1,2,3,4,5]) )1515

2018-09-30 14:05:37 542

原创 python

Python下一切皆对象,每个对象都有多个属性(attribute),Python对属性有一套统一的管理方案。__dict__与dir()的区别: dir()是一个函数,返回的是list; __dict__是一个字典,键为属性名,值为属性值; dir()用来寻找一个对象的所有属性,包括__dict__中的属性,__dict__是dir()的子集;class Stud...

2018-09-29 17:27:13 124

原创 python

python Python下一切皆对象,每个对象都有多个属性(attribute),Python对属性有一套统一的管理方案。__dict__与dir()的区别: dir()是一个函数,返回的是list; __dict__是一个字典,键为属性名,值为属性值; dir()用来寻找一个对象的...

2018-09-29 17:27:00 79

原创 python计数属性类

class Student: count=0 def __init__(self,name,age): self.name=name self.age=age Student.count+=1 # 要使得变量全局有效,就定义为类的属性 def learn(self): print(...

2018-09-29 17:10:13 1127

原创 python计数属性类

python计数属性类 class Student: count=0 def __init__(self,name,age): self.name=name self.age=age Student.count+=1 # 要使得变量全局...

2018-09-29 17:10:00 738

原创 卸载 nvidia 显卡驱动

卸载 nvidia 显卡驱动 sudo apt-get purge nvidia*reboot posted on 2018-09-27 18:40 luoganttcc 阅读(...) 评论(...) 编辑...

2018-09-27 18:40:00 1651

原创 卸载 nvidia 显卡驱动

sudo apt-get purge nvidia*reboot

2018-09-27 18:39:59 4146

原创 历史版本的cuda

历史版本的cuda 链接 posted on 2018-09-27 12:08 luoganttcc 阅读(...) 评论(...) 编辑 收藏 ...

2018-09-27 12:08:00 305

原创 历史版本的cuda

链接

2018-09-27 12:07:51 1557

原创 图像编程

图像编程 #!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Sep 26 12:41:46 2018@author: luogan"""import numpy as npfrom matplotlib import ...

2018-09-26 12:44:00 151

原创 图像编程

#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Sep 26 12:41:46 2018@author: luogan"""import numpy as npfrom matplotlib import pyplot as plttt=np.array([[[2, 1, 225], ...

2018-09-26 12:43:52 513

原创 opencv 采用 matplot 显示图片

import numpy as npimport cv2from matplotlib import pyplot as pltimg=cv2.imread('tt.png',cv2.IMREAD_COLOR)#method1b,g,r=cv2.split(img)img2=cv2.merge([r,g,b])plt.imshow(img2)plt.show()##meth...

2018-09-25 15:44:21 383

原创 opencv 采用 matplot 显示图片

opencv 采用 matplot 显示图片 import numpy as npimport cv2from matplotlib import pyplot as pltimg=cv2.imread('tt.png',cv2.IMREAD_COLOR)#method1b,g,r=cv2.spl...

2018-09-25 15:44:00 222

原创 安装opencv

ubuntu安装opencv

2018-09-25 12:31:06 175

原创 安装opencv

安装opencv ubuntu安装opencv输入这里的make 代码采用这个框架删除 posted on 2018-09-25 12:31 luoganttcc 阅读(...) 评论(...) 编辑 收藏...

2018-09-25 12:31:00 80

原创 随机过程资料

随机过程资料 何声武随机过程引论 posted on 2018-09-25 11:35 luoganttcc 阅读(...) 评论(...) 编辑 收藏 ...

2018-09-25 11:35:00 348

原创 随机过程资料

何声武随机过程引论

2018-09-25 11:34:57 788

原创 linux 打包 tar

tartar命令可以用来压缩打包单文件、多个文件、单个目录、多个目录。常用格式:单个文件压缩打包 tar czvf my.tar file1多个文件压缩打包 tar czvf my.tar file1 file2,...单个目录压缩打包 tar czvf my.tar dir1多个目录压缩打包 tar czvf my.tar dir1 dir2解包至当前目录:tar x...

2018-09-19 11:32:17 99

原创 linux 打包 tar

linux 打包 tar tartar命令可以用来压缩打包单文件、多个文件、单个目录、多个目录。常用格式:单个文件压缩打包 tar czvf my.tar file1多个文件压缩打包 tar czvf my.tar file1 file2,...单个目录压缩打包 tar czvf my.ta...

2018-09-19 11:32:00 76

原创 keras 多个显卡

keras 多个显卡 这里写链接内容 posted on 2018-09-17 12:43 luoganttcc 阅读(...) 评论(...) 编辑 收藏 ...

2018-09-17 12:43:00 104

原创 keras 多个显卡

这里写链接内容

2018-09-17 12:42:34 765

原创 linux scp

linux scp scp命令的实际应用概述: 从本地服务器复制到远程服务器:(1) 复制文件: 命令格式: scp local_file remote_username@remote_ip:remote_folder 或者 scp local_file remote_username@...

2018-09-17 11:01:00 68

转载 linux scp

scp命令的实际应用概述: 从本地服务器复制到远程服务器:(1) 复制文件: 命令格式: scp local_file remote_username@remote_ip:remote_folder 或者 scp local_file remote_username@remote_ip:remote_file 或者 scp local_file remote_ip:...

2018-09-17 11:00:54 524

原创 python ps

ps -ef | grep python

2018-09-11 20:11:01 363

原创 python ps

python ps ps -ef | grep python posted on 2018-09-11 20:11 luoganttcc 阅读(...) 评论(...) 编辑 收藏 ...

2018-09-11 20:11:00 429

原创 sql select

sql select condition="select * from choice_dailyfinancehistory where f_code_id='212' and f_date < '2016-01-24 08:00:00+08'" ...

2018-09-11 15:37:00 125

原创 sql select

condition=&quot;select * from choice_dailyfinancehistory where f_code_id='212' and f_date &amp;lt; '2016-01-24 08:00:00+08'&quot;

2018-09-11 15:36:50 99

原创 Navicat Premium

Navicat Premium 下载 文章 posted on 2018-09-11 13:05 luoganttcc 阅读(...) 评论(...) 编辑 收藏 ...

2018-09-11 13:05:00 80

原创 Navicat Premium

下载 文章

2018-09-11 13:04:44 148

原创 区块链算法

区块链算法 blockchain posted on 2018-09-09 19:04 luoganttcc 阅读(...) 评论(...) 编辑 收藏

2018-09-09 19:04:00 135

原创 区块链算法

blockchain

2018-09-09 19:03:45 320

原创 redis 安装后不能使用

redis 安装后不能使用 原文root@ubuntu:/usr/local/redis/bin# ./redis-cli127.0.0.1:6379> config set stop-writes-on-bgsave-error noOK127.0.0.1:6379> lpush myC...

2018-09-06 10:59:00 82

原创 redis 安装后不能使用

原文root@ubuntu:/usr/local/redis/bin# ./redis-cli127.0.0.1:6379&gt; config set stop-writes-on-bgsave-error noOK127.0.0.1:6379&gt; lpush myColour "red"(integer) 1

2018-09-06 10:58:34 347

原创 redis 重启

/etc/init.d/redis-server stop/etc/init.d/redis-server start/etc/init.d/redis-server restart

2018-09-05 15:56:21 868

原创 redis 重启

redis 重启 /etc/init.d/redis-server stop/etc/init.d/redis-server start/etc/init.d/redis-server restart posted ...

2018-09-05 15:56:00 150

原创 python 东八区

python 东八区 import pytz def get_weekend(tt): from dateutil.parser import parse bb=parse(tt) pacific = pytz.timezone('Asia/Shanghai') ret...

2018-09-05 15:55:00 136

原创 python 东八区

import pytz def get_weekend(tt): from dateutil.parser import parse bb=parse(tt) pacific = pytz.timezone('Asia/Shanghai') return pacific.localize(bb)

2018-09-05 15:54:57 1033

空空如也

空空如也

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

TA关注的人

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