不管是在家里还是办公室,或者是公司的主机,很多时候都是在内网中,也就是说很多都是通过NAT上网的,有时候需要查询下出口的公网IP,如果有浏览器,可以用百度,google搜ip这个关键词得到公网IP,告诉大家几种命令行查询IP[root@pd~]#curlipinfo.io{"ip":"101.37.145.243","city":"","region":"","country":"CN","loc
分类:
Web程序 时间:
2018-10-18 18:05:51
阅读次数:
198
【今日学习】 一、什么是序列化? 我们把对象(变量)从内存中变成可存储或传输的过程称之为序列化,在Python中叫pickling,在其他语言中也被称之为serialization,marshalling,flattening等等,都是一个意思。 二、为什么要序列化? 1:持久保存状态【硬盘存】 需 ...
分类:
编程语言 时间:
2018-10-17 22:19:44
阅读次数:
337
1.json对象(数组)转字符串 2.json字符串转对象JSON.parse(jsonstr); 3.判断json是否为空 var a={aa:111,bb:222}; if(JSON.stringify(a) != "{}") 或者利用 Object.keys(a).length>0 json数 ...
分类:
Web程序 时间:
2018-10-17 16:54:16
阅读次数:
810
import org.apache.commons.lang.StringUtils; import java.util.HashMap; import java.util.Map; public class PhoneNumberUtils { private static Map region_... ...
分类:
其他好文 时间:
2018-10-16 16:05:59
阅读次数:
428
1. 类中的特性关键字 @property 访问特性 2. 关键字@end.setter 设置特性 3.普通方法需要加()来执行方法 4.特性,不需要加()来执行,相当于通过字段来访问,即将方法伪造成一种字段,但是缺点是不能传参数。 ...
分类:
其他好文 时间:
2018-10-14 00:12:24
阅读次数:
196
class Provice: # 静态字段,类中 country = "China" def __init__(self, name): temp = "xxx" # 普通字段,对象中(self就是对象) self.name = name # 普通方法,类中 def show(self): prin ...
分类:
其他好文 时间:
2018-10-13 21:45:13
阅读次数:
206
The high level of English is a standard for a top student. 1. Describe a good law in your country. What it is? How did you knew it? Who does it affect ...
分类:
其他好文 时间:
2018-10-12 23:39:08
阅读次数:
229
Description Barney lives in country USC (United States of Charzeh). USC has n cities numbered from 1 through n and n?-?1 roads between them. Cities an ...
分类:
其他好文 时间:
2018-10-08 11:28:07
阅读次数:
396
China cuts bank reserves by $100m to cushion US tariffs中国央行定向降准释放千亿美元资金China is cutting the amount of reserves the country’s banks are required to kee ...
分类:
其他好文 时间:
2018-10-08 00:41:10
阅读次数:
153
【网络流】One Way Roads 题目描述 In the country of Via, the cities are connected by roads that can be used in both directions. However, this has been the cause ...
分类:
其他好文 时间:
2018-10-07 00:39:27
阅读次数:
172