代码搜索结果

找到约 11,834 项符合 Python 的代码

108-autoupdate.py

import urllib CODE = "mytest.py" URL = "http://www.myownserver.com/pycode/" code = urllib.urlopen(URL + CODE).read() f = file(u"E:\\Python\\" + CODE, "w") f.write(code) f.close() print "File %s upd

041-fileio.py

f = file(u"c:\\python\\test.txt", "w+") print >> f, "Ip dip, sky blue" f.seek(0) print "File says", f.read() f.close()

067-logodownloader.py

import urllib, appuifw, e32 URL = "http://www.python.org/images/python-logo.gif" dest_file = u"E:\\Images\\python-logo.gif" urllib.urlretrieve(URL, dest_file) lock = e32.Ao_lock() viewer

066-httpclient.py

import urllib page = urllib.urlopen("http://www.python.org").read() print page

readme

Python-to-libsvm interface Introduction ============ Python (http://www.python.org/) is a programming language suitable for rapid development. This python-to-libsvm interface is developed so users

makefile

install: python setup.py install clean: rm -Rf build rm -f *.pyc hello.png .PHONY: clean

build.windows.txt

install Python, version 2.3 or later - http://python.org/ install a GTK 2.4 runtime - http://gladewin32.sourceforge.net/ install pygtk 2.4 - http://www.pcpm.ucl.ac.be/~gustin/win32_ports/

simplepy.h

#ifndef _SIMPLEPY_H_ #define _SIMPLEPY_H_ // simplepy.h v1.0 // Purpose: facilities for Embedded Python. // by hujinshan @2005年9月2日9:13:02 #include using std::string; #include

mymod.py

######################################################### # C runs Python code in this module in embedded mode. # Such a file can be changed without changing the C layer. # There is just standard P

boost_pyutil.cpp

#include #include using namespace boost::python; #pragma comment(lib, "boost_python.lib") std::string strtmp; char const* Recognise(const char* url) { strtmp =