代码搜索:Python
找到约 10,000 项符合「Python」的源代码
代码结果 10,000
www.eeworm.com/read/239567/4598786
java customizablefieldeditor.java
/*
* Created on Oct 28, 2004
*
* @author Fabio Zadrozny
*/
package org.python.pydev.utils;
import org.eclipse.jface.preference.FieldEditor;
import org.eclipse.jface.resource.JFaceResource
www.eeworm.com/read/227819/4768234
py radiusd_test.py
#
# Python module test
# Miguel A.L. Paraz
import radiusd
def instantiate(p):
print "*** instantiate ***"
print p
def authorize(p):
print "*** authorize ***"
print
rad
www.eeworm.com/read/221464/4828403
py symlink.py
#!/usr/bin/python
# Test the 'symlink' rule
from BoostBuild import Tester, List
import os
t = Tester()
if os.name != 'posix':
print "The symlink tests can be run on posix only"
sy
www.eeworm.com/read/221464/4828411
py test_all.py
#!/usr/bin/python
import os, sys, string
# clear environment for testing
#
for s in (
'BOOST_ROOT','BOOST_BUILD_PATH','JAM_TOOLSET','BCCROOT',
'MSVCDir','MSVC','MSVCNT','MINGW','watcom
www.eeworm.com/read/221464/4828593
py m1-02.py
#!/usr/bin/python
# Tests that 'make' accepts target from other directories and that
# build request for those targets can be overriden.
from BoostBuild import Tester, List
t = Tester()
t.s
www.eeworm.com/read/221464/4831633
readme
To get started with the Boost Python Library, use the examples
getting_started1.cpp and getting_started2.cpp.
bjam -sTOOLS=your-toolset test
in this directory will build and run the example
www.eeworm.com/read/221464/4831701
cpp destroy_test.cpp
#include
#include
int count;
int marks[] = {
-1
, -1, -1
, -1, -1, -1, -1
, -1
};
int* kills = marks;
struct foo
{
foo()
www.eeworm.com/read/221464/4831743
py extract.py
'''
>>> from extract_ext import *
Just about anything has a truth value in Python
>>> assert check_bool(None)
>>> extract_bool(None)
0
>>> assert check_bool(2)
>>>
www.eeworm.com/read/221464/4831752
py test_cltree.py
#!/usr/bin/env python
from cltree import basic,symbol,constant,variable
b = basic()
c = constant()
s = symbol()
v = variable()
assert isinstance(b,basic)
assert not isinstance(b,symbol)
www.eeworm.com/read/215090/4906370
py sinusoid.py
#!/usr/bin/env python
# Desc: Move an object along a sinusoidal path
# Author: Andrew Howard
import math
import time
from gazebo import *
if __name__ == '__main__':
server = '0' #'default'