这里是windows 环境下的安装 Windows 环境默认不提供任何版本的python。
这里使用的是安装ActivePython ActiveState 制作的 ActivePython 是专门针对 Windows 的 Python
套件,它包含套件, 一个完整的 Python 发布、一个适用于...
分类:
编程语言 时间:
2014-05-04 12:15:57
阅读次数:
400
一、Dictionary 的介绍 dictionary 是python
的内置类型之一,它定义键和值之间一对一的关系 1.定义dictionary 2.修改dictionary NOTE: Dictionary 是无序的。当使用
dictionary 时,您需要知道:dictionary 的 key...
分类:
编程语言 时间:
2014-05-04 11:39:32
阅读次数:
477
同样的缩进表示这段代码处于同一个层次。每一个print都自带一个换行。定义变量一定要在使用函数等之前。abs(-14) ======= 取绝对值函数 内建函数
print abs(-14) ====== 14notepad++编译器没有gbk的 所以但是dos脚本系统是使用gbk的 所以建议直接使用...
分类:
编程语言 时间:
2014-05-04 11:38:35
阅读次数:
438
方法1:defgcd(x, y):whilen: x, y=y,
x%yreturnx方法2:def yue(x,y): if y: return gcd(y,x%y) else: return x
分类:
编程语言 时间:
2014-05-03 22:46:11
阅读次数:
344
#pragma once#include namespace stds { class tool
{ public: std::string ws2s(const std::wstring& ws) { std::string curLocale =
setlocale(LC_ALL...
分类:
其他好文 时间:
2014-05-03 22:25:17
阅读次数:
318
DDL :Data Definition Language (DDL) statements
are used to define the database structure or schema. Some examples:CREATE - to
create objects in the da...
分类:
数据库 时间:
2014-05-03 22:21:22
阅读次数:
410
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:
其他好文 时间:
2014-05-03 21:35:49
阅读次数:
310
1、能用DISTINCT的就不用GROUP BY
SELECT OrderID FROM Details WHERE UnitPrice > 10 GROUP BY OrderID
可改为: SELECT DISTINCT OrderID FROM Details WHERE UnitPrice > 10
2.能用UNION ALL就不要用UNION
UNION A...
分类:
数据库 时间:
2014-05-03 21:31:24
阅读次数:
342
set集合函数主要用来去除重复:比如一个列表有多个重复值,可以用set搞掉>>>l=[1,2,3,4,5,4,3,21]>>>>>>l[1,2,3,4,5,4,3,21]>>>>>>>>>set(l)set([1,2,3,4,5,21])>>>set可以做交集,并集,差集set的增删改增:&..
分类:
编程语言 时间:
2014-05-03 20:49:16
阅读次数:
364
中途经过了好几天都没有动手了,得坚持下去啊刚看了Alex老师的视频,其中有个题目如下:编写登录接口-输入用户密码-认证成功后显示欢迎信息-输错三次后锁定#-*-coding:cp936-*-#用户名保存在一个文件名为user.txt文件中importos,stringtmp=file(‘C:\Users\hityxg\Desktop\user...
分类:
编程语言 时间:
2014-05-03 20:33:16
阅读次数:
471