nova-scheduler.log:220925:2020-07-10 10:49:43.084 8 INFO nova.filters [req-1d842317-8624-4354-9839-73fc0972ecb6 8d5522dc65ad4669aebbc2c80de7d2e9 5bf9c ...
分类:
其他好文 时间:
2020-07-10 11:36:42
阅读次数:
66
以放行redis默认端口6379为例 查看防火墙端口列表 firewall-cmd --list-ports 开启6379端口 firewall-cmd --zone=public --add-port=6379/tcp --permanent 关闭6379端口 firewall-cmd --zon ...
分类:
系统相关 时间:
2020-07-10 10:08:11
阅读次数:
104
# coding: utf-8 import tensorflow as tf import os os.environ["CUDA_VISIBLE_DEVICES"] = "-1" print(tf.__version__) print(tf.test.is_gpu_available()) fr ...
分类:
其他好文 时间:
2020-07-10 10:00:02
阅读次数:
62
相关资料:https://baike.baidu.com/item/lib%E6%96%87%E4%BB%B6/2108657?fr=aladdin 意义 LIB文件中存放的是函数调用的信息,值得一提的是数据库有静态数据库(.lib文件)和动态数据库(.dll文件)。 静态编译 静态编译将导出声明和 ...
分类:
其他好文 时间:
2020-07-10 09:56:30
阅读次数:
64
Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar ...
分类:
其他好文 时间:
2020-07-10 09:54:38
阅读次数:
54
最近解析csv文件时第一列解析不出来,经过研究发现是文件BOM的问题 可以用以下代码去掉BOM 1 function checkBOMAndRemove($filename){ 2 $contents = file_get_contents($filename); 3 $charset[1] = s ...
分类:
Web程序 时间:
2020-07-09 22:12:51
阅读次数:
93
1 HelloVuex.vuex 1 <template> 2 <div>HelloVuex 3 <button @click="ClickSetHandler">Vuex SET</button> 4 <button @click="ClickGetHandler">Vuex GET</butto ...
分类:
其他好文 时间:
2020-07-09 16:42:57
阅读次数:
79
题目: 给定一个排序链表,删除所有重复的元素,使得每个元素只出现一次。示例 1:输入: 1->1->2输出: 1->2示例 2:输入: 1->1->2->3->3输出: 1->2->3来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/remove- ...
分类:
编程语言 时间:
2020-07-09 15:27:18
阅读次数:
60
python序列类型包括哪三种python序列类型包括:列表、元组、字典列表:有序可变序列创建:userlist=[1,2,3,4,5,6]修改:userlist[5]=999添加:userlist.append(777)删除:userlist.remove(4)或者del(userlist[3])pop方法:移除一个元素,默认为最后一个。userlist.pop(3)移除第三个元素,并且返回该值
分类:
编程语言 时间:
2020-07-09 11:55:10
阅读次数:
132
from functools import reduce import re def remove_addsub(exp): s=re.findall("[+-]?\d+(?:\.\d+)?",exp) return reduce(lambda a,b:float(a)+float(b),s) s= ...
分类:
其他好文 时间:
2020-07-08 22:51:48
阅读次数:
68