代码搜索结果
找到约 11,834 项符合
Python 的代码
func_return.py
#!/usr/bin/env python
# Filename: func_return.py
def maximum(x,y):
if x>y:
return x
else:
return y
print maximum(2,3)
lambda.py
#!/usr/bin/env python
# Filename: lambda.py
def make_repeater(n):
return lambda s: s*n
twice=make_repeater(2)
print twice('word')
print twice(5)
using_sys.py
#!/usr/bin/env python
# Filename: using_sys.py
import sys
print 'The command line arguments are:'
for i in sys.argv:
print i
print '\n\nThe PYTHONPATH is',sys.path,'\n'
readme
Two things are provided in this directory: an automatic model selection
tool and a python binding for libsvm.
Part I: Model Selection Tools
Introduction
===============
grid.py is a model selecti
10.html
第十章 进一步学习
6.html
第六章 模块
2.html
第二章 解释程序的使用
3.html
第三章 基本使用
9.html
第九章 类
1.html
第一章 介绍