我用的appserv-win32-2.5.10做的环境,装这个包的时候用默认的utf8编码。在写数据库连接文件时,写成:$conn = mysql_connect("$host","$user","$password");mysql_query("SET NAMES 'UTF8'");mysql_s
分类:
Web程序 时间:
2016-03-14 12:05:20
阅读次数:
172
这是一个HitList import UIKit import CoreData class ViewController: UIViewController,UITableViewDataSource { var names = [String]() var people = [NSManaged
分类:
移动开发 时间:
2016-03-12 16:04:49
阅读次数:
231
需要明确:
字符串不能像列表一样被修改list函数
适合所有的序列:>>>list("hello")
['h', 'e', 'l', 'l', 'o']基本操作
上篇博客说的通用序列的各种操作都适用于列表。1、元素赋值>>>x = [1, 1, 1]
>>>x[1] = 2
>>>x
[1, 2, 1]2、删除元素>>>names = ['Beckham', 'kaka', 'cluo']
>...
分类:
编程语言 时间:
2016-03-11 06:29:57
阅读次数:
199
可使用fix修改数据框的数据和数据类型 > df<-data.frame(x1=c(1,2,3,4),x2=c(5,6,7,8)) > df x1 x2 1 1 5 2 2 6 3 3 7 4 4 8 > fix(df) 若想要修改变量名字 > names(df) [1] "x1" "x2" > n
分类:
其他好文 时间:
2016-03-10 10:40:28
阅读次数:
3840
#coding=utf-8
importrequests
frombs4importBeautifulSoup
importsys
reload(sys)
sys.setdefaultencoding(‘utf8‘)
r=requests.get(‘http://html-color-codes.info/color-names/‘)
html=r.text
#printhtml
soup=BeautifulSoup(html,‘html.parser‘)
trs=soup.find_all(‘tr‘)
f=..
分类:
编程语言 时间:
2016-03-08 00:37:03
阅读次数:
200
本文内容来源:https://www.dataquest.io/mission/129/introduction-to-sql 本文所用数据来源:https://github.com/fivethirtyeight/data/tree/master/college-names 摘要:主要简介了SQL...
分类:
数据库 时间:
2016-03-07 19:08:13
阅读次数:
285
Show databases; Create dbname; Use dbname; Set names utf8; Mysql -u root -p dbname<script.sql;
分类:
数据库 时间:
2016-03-04 16:14:56
阅读次数:
147
function displayProp(obj){ var names=""; for(var name in obj){ names+=name+": "+obj[name]+", "; } alert(names); } 多美完美的体验.跟java的反射很像.
分类:
编程语言 时间:
2016-03-04 10:22:43
阅读次数:
167
先看下面的执行结果: (root@localhost)[(none)]mysql>show variables like 'character%'; +--------------------------+-----------------------------------------------
分类:
数据库 时间:
2016-02-29 18:14:36
阅读次数:
359
The properties configuration element can be used to externalize the configuration values into a properties file and use the properties' key names as p
分类:
其他好文 时间:
2016-02-29 16:00:11
阅读次数:
125