摘要:
适配于centos7 1.安装vncserver 2、安装novnc 3、以上操作只能连接本机,高级用法 4、速度慢,安装numpy 5、查看是否安装成功 阅读全文
posted @ 2018-12-13 13:53
我爱敲代码
阅读(1440)
评论(0)
推荐(0)
摘要:
import sys, os print(__file__) # 绝对路径,实际是文件名 /Users/majianyu/Desktop/test/bin/bin.py print(os.path.abspath(__file__)) # 绝对路径 print(os.path.dirname(__file__)) # 文件夹路径 /Users/majianyu/Desktop/tes... 阅读全文
posted @ 2018-12-13 09:39
我爱敲代码
阅读(252)
评论(0)
推荐(0)
摘要:
keepcache=0 更改为1下载RPM包 不会自动删除 vi /etc/yum.conf 只下载安装包,不安装指令 阅读全文
posted @ 2018-12-11 21:22
我爱敲代码
阅读(2134)
评论(0)
推荐(0)
摘要:
def fetch(data): print(' 查询功能') print('用户数据是',data) def add(): pass def change(): pass def delete(): pass if __name__ == '__main__': msg = ''' 1: 查询 2. 添加 ... 阅读全文
posted @ 2018-12-11 09:10
我爱敲代码
阅读(3109)
评论(0)
推荐(0)
摘要:
python中自带logger模块,实现方法有两种,一般使用第二种,更灵活 方法一: 方法二: logger的踩坑 阅读全文
posted @ 2018-12-09 16:13
我爱敲代码
阅读(2928)
评论(0)
推荐(0)
摘要:
from functools import reduce num_1 = [1, 2, 3, 4, 5] #加法 def reduce_test(array): res = 0 for num in num_1: res += num return res #乘法 def reduce_test(func, array, init=None): ... 阅读全文
posted @ 2018-12-08 14:01
我爱敲代码
阅读(386)
评论(0)
推荐(0)
摘要:
movie_people = ['sb_alex', 'sb_wupeiqi', 'hello'] def filter_test(array): ret = [] for p in array: if not p.startswith('sb'): ret.append(p) return ret res = filter_t... 阅读全文
posted @ 2018-12-08 13:33
我爱敲代码
阅读(480)
评论(0)
推荐(0)
摘要:
map函数形参为一个函数和一个迭代对象 给定一个列表,实现加1 阅读全文
posted @ 2018-12-08 12:58
我爱敲代码
阅读(2329)
评论(0)
推荐(0)
浙公网安备 33010602011771号