自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 The Python Tutorial 5——Data Structures

5.1. More on ListsThe list data type has some more methods.>>> a = [66.25, 333, 333, 1, 1234.5]>>> print a.count(333), a.count(66.25), a.count('x') #Return the number of times x appears in the l

2014-11-28 16:31:50 754

原创 The Python Tutorial 4——More Control Flow Tools

4. More Control Flow Tools4.1. if Statements>>> x = int(raw_input("Please enter an integer: "))Please enter an integer: 42>>> if x < 0:... x = 0... print 'Negative changed to zero'

2014-11-27 15:18:02 768

原创 The Python Tutorial 3——An Informal Introduction to Python

1、Comments in Python start with the hash character,#, and extend to the end of the physical line. A comment may appear at thestart of a line or following whitespace or code, but not within a stringl

2014-11-26 19:08:28 673

原创 The Python Tutorial 2——Using the Python Interpreter

1、Typing an end-of-file character (Control-D on Unix,Control-Z onWindows)at the primary prompt causes the interpreter to exit with a zero exitstatus. If that doesn’t work, you can exit the interpr

2014-11-26 13:22:19 602

转载 强行退出 Mac 上应用程序的 6 种方法

03 日 by Chris K.1条评论当 Mac OS X 的应用开始“无敌风火轮(转菊花)”时可真让人无奈啊,它就这么卡死了。这时要么等应用恢复响应,或者干脆强制退出它,这里介绍 6 种强制退出应用的快捷键操作,有时候能省不少时间。1、通过键盘强制退出当前能够响应的 Mac 应用按住 Command + Option + Shift + Esc 键一两秒,直到应用被

2014-11-25 10:53:44 3506

转载 互联网协议入门(二)

七、一个小结先对前面的内容,做一个小结。我们已经知道,网络通信就是交换数据包。电脑A向电脑B发送一个数据包,后者收到了,回复一个数据包,从而实现两台电脑之间的通信。数据包的结构,基本上是下面这样:发送这个包,需要知道两个地址:  * 对方的MAC地址  * 对方的IP地址有了这两个地址,数据包才能准确送到接收者手中。但是,前面说过,MAC地址有局限性,如果两台电

2014-11-04 14:57:42 793

转载 互联网协议入门(一)

我们每天使用互联网,你是否想过,它是如何实现的?全世界几十亿台电脑,连接在一起,两两通信。上海的某一块网卡送出信号,洛杉矶的另一块网卡居然就收到了,两者实际上根本不知道对方的物理位置,你不觉得这是很神奇的事情吗?互联网的核心是一系列协议,总称为"互联网协议"(Internet Protocol Suite)。它们对电脑如何连接和组网,做出了详尽的规定。理解了这些协议,就理解了互联网的原

2014-11-04 14:36:26 887

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除