numpy.stack 函数用于沿新轴连接数组序列,格式如下: numpy.stack(arrays, axis) 参数说明: arrays相同形状的数组序列 axis:返回数组中的轴,输入数组沿着它来堆叠 1 import numpy as np 2 3 a=np.array([[1,2],[3, ...
分类:
其他好文 时间:
2021-02-20 12:05:27
阅读次数:
0
启动: docker run -p port:8500 -e MODEL_NAME=ground_segmentation --name tfserving-ground-segmentation -e NVIDIA_VISIBLE_DEVICES=1 -v /model_path_in_machi ...
分类:
Web程序 时间:
2021-02-19 13:47:00
阅读次数:
0
import pymongo db_configs = { 'type': 'mongo', 'host': '127.0.0.1', 'port': '27017', "user": "", "password": "", 'db_name': 'spider' } class MongoPipe ...
分类:
其他好文 时间:
2021-02-19 13:41:33
阅读次数:
0
题目描述: 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 ...
分类:
其他好文 时间:
2021-02-19 13:36:23
阅读次数:
0
mysql下载地址:https://dev.mysql.com/downloads/mysql/8.0.html 下载后解压: 新建my.ini文件 [Client] port = 3306 [mysqld] #设置3306端口 port = 3306 # 设置mysql的安装目录,注意斜杠,需要两 ...
分类:
数据库 时间:
2021-02-19 13:34:12
阅读次数:
0
包机制 为了更好地组织类,Java提供了包机制,用于区别类别的命名空间 包语句的语法格式为:Package pkg1[.pkg2[.pkg3]]; 一般利用公司域名倒置作为包名 为了能够使用某一个包的成员,我们需要在java程序中明确导入该包,使用"import"语句可完成此功能 import pa ...
分类:
编程语言 时间:
2021-02-19 13:21:28
阅读次数:
0
1.application.yml ###################以下为Redis增加的配置########################### spring: redis: #单机配置 # host: 122.51.50.249 # port: 6380 timeout: 6000 # ...
分类:
编程语言 时间:
2021-02-19 13:07:48
阅读次数:
0
1.防火墙开放端口 firewall-cmd --zone=public --add-port=8848/tcp --permanent firewall-cmd --list-ports 开放centOS 网关,远程连接 grant all privileges on *.* to 'root'@ ...
官网的样式 本地的样式 修改一下这里就好了 div.el-card__body { padding: 16px !important; } ...
分类:
编程语言 时间:
2021-02-18 13:25:44
阅读次数:
0
#coding=utf8 import io import string a="你好" f = open(r'f:\enuser.txt', 'a') #若文件不存在,系统自动创建。'a'表示可连续写入到文件,保留原内容,在原 #内容之后写入。可修改该模式('w+','w','wb'等) f.wri ...
分类:
编程语言 时间:
2021-02-18 13:19:24
阅读次数:
0