参考的一位大神的Blog,记录一下,便于以后复习。我是初学者,难免有许多错误的地方,恳请各位大神批评指正。 关于线性回归的理论,有很多优秀的课程(比如:吴恩达的机器学习课程)可供参考,这里直接进行代码实现,并对必要的地方进行解释。 1 import torch as tc #简写成tc便于编写代码 ...
分类:
其他好文 时间:
2020-09-17 18:10:13
阅读次数:
33
wxml:(父级页面) <view class="pageLi flex" catchtap="toInstitute" data-name="{{item.shop_name}}" data-id="{{item.id}}"> <image src='{{item.headimg}}' mode= ...
分类:
微信 时间:
2020-09-17 17:40:22
阅读次数:
63
通过item和with_items对重复操作进行循环执行示例:hosts:jack6_1remote_user:rootgather_facts:notasks:name:touchfilefile:path:"{{item}}"state:touchwith_items:"a""b""c"在jack6_1主机上创建三
分类:
其他好文 时间:
2020-09-17 17:20:16
阅读次数:
39
with_items遍历列表中每个元素,包括嵌套列表with_list将嵌套列表作为整体元素遍历with_together将多个列表中的子列表元素,一起输出,不成对则null补位示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_items:[1,2,3][a,b]debug
分类:
其他好文 时间:
2020-09-17 17:19:57
阅读次数:
31
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:41
阅读次数:
32
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:20
阅读次数:
33
一、切片 (1)正常切片 L[0:3] L[0:3]表示,从索引0开始取,直到索引3为止,但不包括索引3。即索引0,1,2,正好是3个元素。 如果第一个索引是0,还可以省略。 L[:3] (2)倒数切片 L[-2:] (3)每几个选一个 L[:10:2] #前10个数,每两个取一个 (4)tuple ...
分类:
编程语言 时间:
2020-09-17 17:09:30
阅读次数:
24
1 Zabbix术语 1.1 Host(主机) 一台你想监控的网络设备,用IP或域名表示。 1.2 Item(监控项) 你想要接收的主机的特定数据,一个度量数据。 1.3 Trigger(触发器) 一个被用于定义问题阈值和“评估”监控项接收到的数据的逻辑表达式。 1.4 Action(动作) 一个对 ...
分类:
其他好文 时间:
2020-09-17 16:20:20
阅读次数:
28
names = ['A','B','C',['D','E'],['F']] def print_lol(the_list,indent=False,level=0): # for each_item in the_list: if isinstance(each_item,list): print_ ...
分类:
其他好文 时间:
2020-09-17 16:13:35
阅读次数:
26
app.vue <template> <div id="app"> <v-home></v-home> </div> </template> <script> import Home from './components/Home.vue'; export default { data () { r ...
分类:
移动开发 时间:
2020-09-17 15:45:01
阅读次数:
33