代码搜索:Python
找到约 10,000 项符合「Python」的源代码
代码结果 10,000
www.eeworm.com/read/253499/12218987
py soundex.py
"""Soundex algorithm
This program is part of "Dive Into Python", a free Python book for
experienced programmers. Visit http://diveintopython.org/ for the
latest version.
"""
__author__ = "Mark Pilg
www.eeworm.com/read/252270/12290211
txt 第七章 输入输出 suzhe (转).txt
作者:softrain
email: softrain@edu.21cn.com
日期:2001-7-21 9:58:19
第七章 输入输出
有几种办法可以从程序输出;数据可以用可读的形式显示,或保存到文件中以备日后使
用。本章讨论一些输入输出的办法。
7.1 输出格式控制
到现在为止我们已经看到了两种输出值的方法:表达式语句和print语句。(第三种方法
是使用文件对象 ...
www.eeworm.com/read/337282/12379364
in pygtk-demo.in
#! @PYTHON@
import sys
import os.path
pygtklibdir = os.path.join("@libdir@", "pygtk", "2.0")
sys.path.insert(0, pygtklibdir)
execfile(os.path.join(pygtklibdir, "pygtk-demo.py"))
www.eeworm.com/read/336977/12403588
readme
This directory includes some useful codes:
1. subset selection tools.
2. parameter selection tools.
Part I: Subset selection tools
Introduction
============
Training large data is time consuming.
www.eeworm.com/read/336977/12403658
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:\python24\include
PYTHON_LIB = c:\python24\libs\python24.lib
www.eeworm.com/read/130548/14187217
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
www.eeworm.com/read/130054/14209941
plg dlltest.plg
Build Log
--------------------Configuration: dlltest - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\song\
www.eeworm.com/read/229886/14313635
py break.py
#!/usr/bin/python
# Filename: break.py
while True:
s = raw_input('Enter something : ')
if s == 'quit':
break
print 'Length of the string is', len(s)
print 'Done'
www.eeworm.com/read/229886/14313664
py use_file.py
#!/usr/bin/python
#filename:use_file.py
poem='''programming is fun
when the work is done
if you !!!!'''
f=file('poem.txt','w')
f.write(poem)
f.close()
f=file('poem.txt')
while True:
lin
www.eeworm.com/read/229886/14313670
py while.py
#!usr/bin/python
#while.py
number=23
loop=True
while loop:
guess=int(raw_input("输入一个数"))
if guess==number:
print "正确"
loop=False
elif guess