代码搜索结果
找到约 10,000 项符合
Python 的代码
accept.py
# -*-python-*-
#
# Copyright (C) 1999-2001 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found
viewcvs.py
# -*-python-*-
#
# Copyright (C) 1999-2001 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found
test_mysqldb_capabilities.py
#!/usr/bin/env python
import test_capabilities
import unittest
import MySQLdb
import warnings
warnings.filterwarnings('error')
class test_MySQLdb(test_capabilities.DatabaseTest):
db_module = My
escape.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Urwid escape sequences common to curses_display and raw_display
# Copyright (C) 2004-2006 Ian Ward
#
# This library is free software; you can redis
basic.cpp
#include
int
main(int argc, char *argv[])
{
Py_Initialize();
PyRun_SimpleString("from time import time,ctime\n"
"print 'Today is',ctime(time())\n");
char *cstr;
PyObje
etrace
#!/usr/bin/env python
# $Revision: 2.1 $
import string, os, sys, stat
# Create a TRACE file if none exists
def init_trace():
try:
os.stat("TRACE")
except OSError:
os.system("
setup.py
#!/usr/bin/env python
from distutils.core import setup, Extension
setup(name = "LIBSVM",
version = "2.88",
author="Chih-Chung Chang and Chih-Jen Lin",
maintainer="Chih-Jen Lin",
gpsd.py
#!/usr/bin/env python
#
# gpsd.py -- low-level interface to an NMEA GPS
#
# Like libgpsd in C, but handles only straight NMEA devices (not Zodiac).
import termios, os, fcntl, copy, time, math, struct
setup.py
#!/usr/bin/env python
from distutils.core import setup, Extension
setup(name = "LIBSVM",
version = "2.87",
author="Chih-Chung Chang and Chih-Jen Lin",
maintainer="Chih-Jen Lin",
grid.py
#!/usr/bin/env python
import os, sys, traceback
import Queue
import getpass
import re
from threading import Thread
from string import find, split, join, atof
# svmtrain and gnuplot executable
is_wi