- 博客(7)
- 收藏
- 关注
原创 Reading List
Computer Systems: A Programmer’s PerspectiveAdvanced Programming in the UNIX EnvironmentUNIX Network ProgrammingHTTP: The Definitive Guide
2016-09-13 14:17:11
348
原创 Git Django 上傳
开始我们自己的Git版本库Git跟踪一组特定的在代码仓库(或简称“仓库”)中文件的更改。 我们开始用git管理自己的项目吧。 打开你的终端,进入 djangogirls 文件夹运行以下的命令:注意 在初始化仓库之前,请使用 pwd命令 (OSX/Linux) 或者 cd (Windows) 命令检查你当前的工作目录。 你应该是在 djangogirls 文件夹下运行命令。$ git initIni
2016-09-12 16:05:59
720
转载 Python and or
1. not is evaluated first2. and is evaluated next3. or is evaluated last>>> bool_one = False or not True and True # True>>> bool_two = False and not True or True # True>>> bool_three = True and not (
2016-07-31 14:10:11
297
原创 40.类和对象:一些相关的BIF
一些相關BIFissubclass(class, classing)用来判断类参数class是否是类型参数classinfo的子类>>> class A: pass >>> class B(A): pass>>> issubclass(B, A)True>>> issubclass(B, B)True>>> is subclass(B, object)T
2016-07-26 09:23:42
633
原创 The Python Tutorial - Input and Output
7. Input and Output函数 str() 用于将值转化为适于人阅读的形式,而 repr() 转化为供解释器读取的形式(如果没有等价的语法,则会发生 SyntaxError 异常) 某对象没有适于人阅读的解释形式的话, str() 会返回与 repr() 等同的值。>>> s = 'Hello, world.'>>> str(s)'Hello, world.'>>> repr(s
2016-07-21 20:18:45
488
原创 The Python Tutorial - Modules
The Python Tutorial6.Modules# /Desktop/fibo (在桌面创建fibo.py)# Fibonacci numbers moduledef fib(n): # write Fibonacci series up to n a, b = 0, 1 while b < n: print(b, end=' ') a
2016-07-21 09:49:14
281
原创 The Python Tutorial - Data Structures
5.Data Structures关于列表更多的内容>>> a = [66.25, 333, 333, 1, 1234.5]>>> print(a.count(333), a.count(66.25), a.count('x'))2 1 0>>> a.insert(2, -1)>>> a.append(333)>>> a[66.25, 333, -1, 333, 1, 1234.5, 3
2016-07-21 09:24:56
348
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人