python中is和==的区别Python中对象包含的三个基本要素,分别是:id(身份标识) 、type(数据类型)和value(值)。‘==’比较的是value值‘is’比较的是id简述read、readline、readlines的区别read读取整个文件readline读取下一行数据readl ...
分类:
编程语言 时间:
2019-02-09 16:23:52
阅读次数:
179
这是一段测试代码public static void main(String [] args) { System.out.println("Hello World" ...
分类:
其他好文 时间:
2019-02-09 01:05:17
阅读次数:
141
一、Immutable简介 Immutable Data 就是一旦创建,就不能再被更改的数据。对 Immutable 对象的任何修改或添加删除操作都会返回一个新的 Immutable 对象。Immutable 实现的原理是 Persistent Data Structure(持久化数据结构),也就是 ...
分类:
其他好文 时间:
2019-02-08 20:00:46
阅读次数:
399
There must be many A + B problems in our HDOJ , now a new one is coming. Give you two hexadecimal integers , your task is to calculate the sum of them ...
分类:
其他好文 时间:
2019-02-08 10:30:33
阅读次数:
208
Vant Weapp小程序蹲坑之使用toast组件
分类:
微信 时间:
2019-02-07 23:31:51
阅读次数:
769
JDBC_c3p0数据库连接池 1.一个基本的c3p0数据库连接池 /** * 一个基本的从池c3p0数据库连接池 */ public static void testC3P0() throws Exception{ ComboPooledDataSource cpds = new ComboPoo ...
分类:
数据库 时间:
2019-02-07 00:06:40
阅读次数:
214
使用import sys导入功能 __name__变量可以对当前引用该模块的函数进行判断,如果是主函数(main)则执行test功能,否则跳过 ...
分类:
其他好文 时间:
2019-02-06 19:56:09
阅读次数:
138
基础命令学习目录首页 原文链接:http://mip.xuexila.com/diannao/xitong/linux/3609675.html linux系统下我们可以使用备份命令dump对系统文件进行备份,以免数据丢失。下面由学习啦小编为大家整理了linux下备份命令dump的相关知识,希望大家 ...
分类:
其他好文 时间:
2019-02-06 14:29:20
阅读次数:
336
一、画直线 代码: //// YYlineview.m// 03-画直线//// Created by apple on 14-6-9.// Copyright (c) 2014年 itcase. All rights reserved.// #import "YYlineview.h" @impl ...
分类:
移动开发 时间:
2019-02-05 22:14:18
阅读次数:
238
一、position和anchorPoint 一、position和anchorPoint 一、position和anchorPoint 1.简单介绍 CALayer有2个非常重要的属性:position和anchorPoint @property CGPoint position; 用来设置CAL ...
分类:
移动开发 时间:
2019-02-05 20:50:46
阅读次数:
177