1. use try, except, finallytry: data=open('its.txt','w') print('its..', file=data)except: print('file error:', +str(err))finally: if 'data...
分类:
编程语言 时间:
2015-09-24 16:40:35
阅读次数:
222
accepted There‘s no way to do this. See https://github.com/angular/angular.js/issues/263. Depending on what you‘re doing you can use a boolean to just not going into the body of the loop. Something...
分类:
Web程序 时间:
2015-09-24 14:48:13
阅读次数:
184
设置字符集 SET NAMES utf8;创建数据库 CREATE DATABASE "database";显示所有数据库 SHOW DATABASES;使用数据库 USE "dataname"显示所有表 SHOW TABLES;修改表的名称 RENAMETABLE study T...
分类:
数据库 时间:
2015-09-24 12:49:38
阅读次数:
189
在减压.a当文件,据报一个类别似 xxx.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)的错误,经过查找资料,原来是由于该.a文件包括了多个cpu架构,比方armv7,armv7s等,此时能够用例如以下命令:lipo xx...
分类:
其他好文 时间:
2015-09-24 12:29:14
阅读次数:
293
NOTE: 1.private 继承意味 is-implemented-in-terms-of(根据某物实现出)。它通常比复合(composition)的级别低。但是当derivated class需要访问protected base class的成员,或需要重新定义继承而来的virtual函数.....
分类:
其他好文 时间:
2015-09-23 23:08:45
阅读次数:
179
2015-09-23#delete_table_data.sh#批量删除mysql库中表数据#!/bin/bash### AUTHOR: Leo### DATE: 2015/09/23### REV: 1.0echo -e "Input the dbname you want to use: \c"...
分类:
数据库 时间:
2015-09-23 19:07:12
阅读次数:
184
今天有个徒弟找我看一条SQLSELECT /*+ use_hash(REGION,MPI) */
REGION.REGION_CODE,
REGION.REGION_NAME,
MPI.YEARS,
SUM(MPI.MPI_COUNT) SUM_MPI_COUNT
FROM
(SELECT /*+ index_ffs(T_REGION T_REGION...
分类:
其他好文 时间:
2015-09-23 17:05:38
阅读次数:
170
--删除数据库drop database ArchiveDev;--建立归档数据库CREATE DATABASE ArchiveDev; USE ArchiveDev;GO--1、建立归档计划执行表CREATE TABLE Arch_CollectDataExecSchedule(ID INT NO...
分类:
数据库 时间:
2015-09-23 16:47:09
阅读次数:
247
最近手动导入AFNetworking 2.6.0框架时发现Xcode报如下错误:1. Use of undeclared identifier 'kSecFormatUnknown'2.Use of undeclared identifier 'kSecItemPemArmour'3. Implic...
分类:
移动开发 时间:
2015-09-23 16:25:47
阅读次数:
170
首先加入命名空间using System.Data.SqlClient;1.查询SqlConnection conn = new SqlConnection();conn.ConnectionString = "Data Source=(local);Initial Catalog=数据库名;Use...
分类:
数据库 时间:
2015-09-23 15:07:24
阅读次数:
175