Yixuan Li

Results 1 comments of Yixuan Li

增加一行代码“ args = [arg.encode('utf-8') for arg in args]”就可以。 def __init__(self, args): dir_path = os.path.dirname(os.path.realpath(__file__)) self.lib = ctypes.CDLL('%s/build/dll/libsetcover.so' % dir_path) self.lib.Fit.restype = ctypes.c_double self.lib.Test.restype = ctypes.c_double self.lib.GetSol.restype = ctypes.c_double # Convert...