代码搜索结果
找到约 10,000 项符合
Python 的代码
method.py
#!/usr/bin/env python
# Filename: method.py
class Person:
def sayHi(self):
print 'Hello, how are you?'
p=Person()
p.sayHi()
# This short example can also be written as Person().sayHi()
helloworld.py
#!/usr/bin/env python
# Filename : helloworld.py
print 'Hello World'
func_key.py
#!/usr/bin/env python
# Filename: func_key.py
def func(a,b=5,c=10):
print 'a is',a,'and b is',b,'and c is',c
func(3,7)
func(25,c=24)
func(c=50,a=100)
using_dict.py
#!/usr/bin/env python
# Filename: using_dict.py
# 'ab' is short for 'a'ddress'b'ook
ab={ 'Swaroop' : 'swaroopch@byteofpython.info',
'Larry' : 'larry@wall.org',
'Matsumoto' : 'matz@ruby-lan
6.html
第六章 模块
1.html
第一章 介绍
4.html
第四章 流程控制