08 2018 档案
摘要:from numpy import * a1 =[[1,2,3],[4,5,6]] #列表 print('a1 :',a1) #('a1 :', [[1, 2, 3], [4, 5, 6]]) a2 = array(a1) #列表 > 数组 print('a2 :',a2) #('a2 :', ar
阅读全文
摘要:直接看例子: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 解析: loc 在index的标签上进行索引,范围包括start和en
阅读全文
摘要:[python] view plain copy <code class="language-python">import operator from functools import reduce a = [[1,2,3], [4,6], [7,8,9,8]] print(reduce(opera
阅读全文
摘要:使用python的人都知道range()函数很方便,今天再用到他的时候发现了很多以前看到过但是忘记的细节。这里记录一下range(),复习下list的slide,最后分析一个好玩儿的冒泡程序。 这里记录一下: >>> range(1,5) #代表从1到5(不包含5) [1, 2, 3, 4] >>>
阅读全文
摘要:1、在matlab中 ,infro.mat中存有很多子矩阵(比如:mean_FA.mat, mean_e1.mat和 mean_e2.mat),调出某一个矩阵时,命令行为:load([path,'\',infro.mat],'mean_FA'); 2、load(path) 导出的形式是结构体;而im
阅读全文
摘要:1、An infant (from the Latin word infans, meaning "unable to speak" or "speechless") is the very young offspring of a human or other mammal. the term i
阅读全文
摘要:clearclc%一、新建文件夹,%二、将原始路径下的数据剪切到新建文件夹中path = ('E:\DFC_DMN_ASD_DATA_res\Cluster_hcc\4,6,8\Cluster_6\state2\ASD\');%原始数据路径para = ('E:\DFC_DMN_ASD_DATA_r
阅读全文
摘要:1、安装pip: python -m pip install -U pip (打开命令行窗口:Anaconda Prompt) 升级:python -m pip install --upgrade pip (相关用法:https://pip.pypa.io/en/latest/user_guide/
阅读全文
摘要:一、网线有网,路由器连接之后没网,解决办法 1、将网线直接连接电脑,然后通过(win+R; cmd; ipconfig)命令行,看其网关,WAN ip地址 2、然后网线连接路由器,将路由器的网关,ip地址设置修改成step 1 中看到的网关和ip地址。 注意: LAN ip 和 WAN ip 地址不
阅读全文