代码搜索:Python
找到约 10,000 项符合「Python」的源代码
代码结果 10,000
www.eeworm.com/read/229886/14313672
py using_sqrt.py
#!/sur/bin/python
#FileName:using_sqrt.py
import math
print math.sqrt(4)
www.eeworm.com/read/229886/14313674
py func_default.py
#!/usr/bin/python
# Filename: func_default.py
def say(message, times = 1):
print message * times
say('Hello')
say('World', 5)
www.eeworm.com/read/229886/14313681
py using_random.py
#!/sur/bin/python
# -*- coding: cp936 -*-
#FileName:using_random.py
import random
for pot in range(1,21):
print "次数%-6d:%d"%(pot,random.randrange(1,7))
www.eeworm.com/read/229886/14313683
py using_sys.py
#!/usr/bin/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/229185/14349988
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/125950/14453782
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:\python23\include
PYTHON_LIB = c:\python23\libs\python23.lib