1、数字 int(整型) 在32位机器上,整数的位数为32位,取值范围为-2**31~2**31-1,即-2147483648~2147483647 在64位系统上,整数的位数为64位,取值范围为-2**63~2**63-1,即-9223372036854775808~922337203685477 ...
分类:
编程语言 时间:
2020-11-30 15:51:46
阅读次数:
10
vagrant常用命令 1. 先创建一个空的目录 2. vagrant init centos/7 初始化虚拟机配置文件 3. vagrant up 启动虚拟机 4. vagrant ssh ssh登录虚拟机 通过 exit 退出 5. vagrant status 查看虚拟机状态 6. vagra ...
分类:
其他好文 时间:
2020-11-27 11:51:30
阅读次数:
23
不要再傻傻的使用setValue了,因为setValue根本不生效,简直被这个API文档给坑坏了 有的时候在获取接口之后赋值datetimebox的时候一直赋值不上去,看着文档示例写着 $('#dt').datetimebox('setValue', '6/1/2012 12:30:56'); 然而 ...
分类:
其他好文 时间:
2020-11-27 11:42:49
阅读次数:
11
# 模板1 class LayerChart(TopLevelMixin, _EncodingMixin, core.TopLevelLayerSpec): def __init__(self, data=Undefined, layer=(), **kwargs): for spec in lay ...
分类:
编程语言 时间:
2020-11-27 11:30:17
阅读次数:
11
一、全连接层用pytorch定义 二、MLP举例 三、具体代码 class MLP(nn.Module): def __init__(self): super(MLP,self).__init__() self.model = nn.Sequential( nn.Linear(784,200), n ...
分类:
其他好文 时间:
2020-11-27 10:57:01
阅读次数:
4
class MagicDictionary(object): def __init__(self): """ Initialize your data structure here. """ self.mydict = {} def buildDict(self, dictionary): """ ...
分类:
其他好文 时间:
2020-11-26 15:16:42
阅读次数:
9
前文:我在一个Win1020H2的系统上安装了CitirxVirtualDesktop1912版本的VDA,而且勾选了1912的新功能“UPL”(“个性化用户层”)。结果导致开机之后会黑屏四分钟左右才能进入,从官网一查,这是因为20H2与UPL不兼容引起的,官方暂时无解。无奈只能把VDA给卸载掉了(UPL用的是AppLayering的技术但依旧是VDA的一部分。)而然之后就没有卡四分钟的事情,但发
分类:
其他好文 时间:
2020-11-26 14:59:22
阅读次数:
6
from random import * #定义一个Info类,功能是打印介绍性信息,并且获得用户输入的两队伍能力值,模拟场次 class Info: def __init__(self): print('这个程序是模拟两支队伍A和B的排球比赛') print('程序运行需要A和B的能力值(以0到1 ...
分类:
其他好文 时间:
2020-11-26 14:34:57
阅读次数:
5
""" Trie树 """ __author__ = 'youngf' class TrieNode: def __init__(self): self.children = {} self.last = False class Trie: def __init__(self): self.root ...
分类:
其他好文 时间:
2020-11-25 12:39:23
阅读次数:
5
按e进入编辑页面 在LANG=en_US.UTF-8 后面添加 rw single init=/bin/bash ctrl+x 组合键重启,通过passwd重置root密码 如果开启了SELinux,执行命令touch /.autorelabel命令 输入exec /sbin/init命令重启系统 ...
分类:
其他好文 时间:
2020-11-25 12:22:45
阅读次数:
5