代码搜索:Python
找到约 10,000 项符合「Python」的源代码
代码结果 10,000
www.eeworm.com/read/435264/7794857
py 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)
www.eeworm.com/read/435264/7794859
py 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)
www.eeworm.com/read/435264/7794860
py 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'
www.eeworm.com/read/199752/7824845
win makefile.win
#You must ensure nmake.exe, cl.exe, link.exe are in system path.
#VCVARS32.bat
#Under dosbox prompt
#nmake -f Makefile.win
PYTHON_INC = c:\python25\include
PYTHON_LIB = c:\python25\libs\python25.lib
www.eeworm.com/read/299182/7880989
c hello.c
#include
#include
/**//* module functions */
static PyObject * /**//* returns object */
message(PyObject *self, PyObject *args) /*