close all; x=[1,2,3,4,5;4,5,6,7,8;7,8,9,10,11];%生成随机整数矩阵,大小为5X3,范围在1-10中 y=(-2:2)'; figure,plot(x);%x矩阵有5列,所以有五条线,每列三个值,把这三个数连起来 figure,plot(y,x);%y为自 ...
分类:
其他好文 时间:
2020-11-01 20:47:16
阅读次数:
19
题目: 请写出一个数组拍平函数。效果如下: var arr=['a', ['b', 'c'], 2, ['d', 'e', 'f'], 'g', 3, 4]; flat(arr) //a,b,c,2,d,e,f,g,3,4 方法一:使用toString方法先将arr转换为一个字符串, 再以split ...
分类:
编程语言 时间:
2020-11-01 20:46:54
阅读次数:
20
组件化、模块化、集中式、分布式、服务化、面向服务的架构、微服务架构最近最火的词是什么?那大概就是微服务(Microservice)了。最近也火的一踏糊涂的Docker、AppOps也都是围绕着微服务领域的。在微服务领域还有很多相关名词。这些名词有一个共同的特点那就是晦涩难懂。他们就像中国古代的道、气、八卦等词一样,一解释就懂,一问就不知,一讨论就打架。本文主要来介绍几个和微服务相关的概念。这些概念
分类:
其他好文 时间:
2020-11-01 10:46:05
阅读次数:
15
--查看当前服务器所有服务 service --status-all -- 查看当前所有正在运行的服务 service --status-all | grep running --查看指定服务运行状态如 httpd service --status-all | grep httpd 或 servic ...
分类:
系统相关 时间:
2020-11-01 10:20:18
阅读次数:
23
我发现有些人习惯在 /etc/profile 文件里面配置环境变量,在这里配置挺不好的。 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (ba ...
分类:
系统相关 时间:
2020-11-01 10:17:26
阅读次数:
24
1.网卡配置bond#网卡bond模式 Linux 多网卡绑定网卡绑定mode共有七种(0~6) bond0、bond1、bond2、bond3、bond4、bond5、bond6 常用的有三种mode=0:平衡负载模式,有自动备援,但需要”Switch”支援及设定。mode=1:自动备援模式,其中 ...
分类:
其他好文 时间:
2020-11-01 10:14:44
阅读次数:
16
问题 和Synchronized的区别 存储在jvm的哪个区域 真的只是当前线程可见吗 会导致内存泄漏么 为什么用Entry数组而不是Entry对象 你学习的开源框架哪些用到了ThreadLocal ThreadLocal里的对象一定是线程安全的吗 笔试题 一、概述 1、官方术语 ThreadLoc ...
分类:
其他好文 时间:
2020-11-01 10:12:29
阅读次数:
11
variable_names = [v.name for v in tf.all_variables()] values = sess.run(variable_names) for k,v in zip(variable_names, values): print("Variable: ", k) ...
分类:
其他好文 时间:
2020-11-01 09:47:51
阅读次数:
15
system-config-users(8) System Config Tools Manual system-config-users(8) NAME system-config-users - User and Group Management tool SYNOPSIS system-con ...
分类:
其他好文 时间:
2020-10-31 02:00:00
阅读次数:
15