摘要:
一、Python安装 在Mac系统下,系统自带python开发环境,打开终端,输入python,我们就可以看到当前python版本号,例如我的系统是OS X EI Caption 10.11.1,自带的python版本是2.7。 目前python已经更新到3.6,因为python3和python2做 阅读全文
摘要:
// 8 day(2016/8/11) 38. In python , it is oop. class Baskball: def setName(self, name): self.name = name def kick(self): print('my name is %s' % self. 阅读全文
摘要:
35. In python, file operation syntax is similar to c. open(file,'r',……) //the first parameters is necessary, other is optional ,the second parameters 阅读全文
摘要:
//sixth day to study python(2016/8/7) 32. In python , there are have an special type dictionary , it is same with oc. such as: dicOne = {'wyg':'write 阅读全文
摘要:
//fourth day to study python 24. In python , how to create funcation. we can use def to define funcation. such as: def MyFirstFuncation(): print('this 阅读全文
摘要:
//this is my first day to study python, in order to review, every day i will make notes (2016/7/31) 1. In python , there are many bulit-in funcation. 阅读全文