本文参考 今天在Java Language Specification上偶然看到一条关于枚举的语法特点说明 An enum declaration is implicitly final unless it contains at least one enum constant that has a... ...
分类:
编程语言 时间:
2020-04-22 16:57:35
阅读次数:
86
终端,附着在终端的接口程序:GUI:KDE,GNome,XfceCLI:/etc/shellsbash的特性:命令行展开:~,{}命令别名:alisa,unalisa命令历史:history文件名通配:glob快捷键:Ctrl+a,e,u,k,l命令补全:$PATH路径补全:bash特性之命令hash缓存此前的查找结果:key-valuekey:搜索键value:值hash命令hash:列出has
分类:
系统相关 时间:
2020-04-22 11:32:52
阅读次数:
112
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. N ...
分类:
其他好文 时间:
2020-04-22 10:01:42
阅读次数:
64
1. 什么是ARP ARP(Address Resolution Protocol)协议,即地址解析协议。该协议的功能就是将 IP 地 址解析成 MAC 地址。 ARP(Address Resolution Protocol,地址解析协议)是根据 IP 地址获取物理地址的一个 TCP/IP 协议。由 ...
分类:
其他好文 时间:
2020-04-22 09:47:46
阅读次数:
69
服务端 import socket import struct import json import subprocess import os class MYTCPServer: address_family = socket.AF_INET socket_type = socket.SOCK_S ...
分类:
编程语言 时间:
2020-04-22 00:20:55
阅读次数:
98
[root@localhost ~]# lshw -class network -businfo Bus info Device Class Description pci@0000:05:00.0 enp5s0 network Hi1822 Family (2*25GE) pci@0000:06: ...
分类:
其他好文 时间:
2020-04-21 18:15:50
阅读次数:
100
boost serialization it has 2 modes: intrusive and non intrusive intrusive mode non intrusive mode How does boost impl the 2 modes? A: By function over ...
分类:
其他好文 时间:
2020-04-21 15:28:44
阅读次数:
71
因为代码变量太多,使用Sublime text并能很好地跳转,所以使用VsCode 神器。 导入Pytorch模块后出现了 Module 'torch' has no cat member,所以在网上找解决办法,这位博主的文章很好用,一路解决。 我的版本python3.7无Anacada,解决办法, ...
分类:
其他好文 时间:
2020-04-20 20:07:30
阅读次数:
491
1.error: ‘strlen’ was not declared in this scope 方案:#include<cstring>//**<string.h>是不包括strlen的,要使用cstring** 2.error: size_t has not been declared据说这是因 ...
分类:
编程语言 时间:
2020-04-20 13:34:20
阅读次数:
129
Problem : A matrix is Toeplitz if every diagonal from top left to bottom right has the same element. Now given an M x N matrix, return True if and onl ...
分类:
其他好文 时间:
2020-04-20 12:00:41
阅读次数:
54