亲爱的朋友们,对于井上优奈有没有打马赛克和有谁知道python怎么调用c#的d,很多人可能不是很了解。因此,今天我将和大家分享一些关于井上优奈有没有打马赛克和有谁知道python怎么调用c#的d的知识,希望能够帮助大家更好地理解这个话题。
本文目录一览
井上优奈有没有打马赛克
有啊,MXGS-547,MXGS-539,MXGS-530,这些都是有谁知道python怎么调用c#的dll
1、首选运行工具 makepy.py。
2、这样就可以查看 C# dll的 com导出的 py文件了。
Python编程makepy.py代码如下:
#-*-coding:mbcs-*-
#Createdbymakepy.pyversion0.5.00
#Bypythonversion2.5.4(r254:67916,Dec232008,15:10:54)[MSCv.131032bit(Intel)]
#Fromtypelibrary'XGSharpLib.tlb'
""""""
makepy_version='0.5.00'
python_version=0x20504f0
importwin32com.client.CLSIDToClass,pythoncom,pywintypes
importwin32com.client.util
frompywintypesimportIID
fromwin32com.clientimportDispatch
#Thefollowing3line ayneedtweakingfortheparticularserver
#Candidatesarepythoncom.Missing,.Emptyand.ArgNotFound
defaultNamedOptArg=pythoncom.Empty
defaultNamedNotOptArg=pythoncom.Empty
defaultUnnamedArg=pythoncom.Empty
CLSID=IID('{B38EF2FA-4639-40BC-B97C-7908CED04FF9}')
MajorVersion=1
MinorVersion=0
LibraryFlags=8
LCID=0x0
fromwin32com.clientimportDispatchBaseClass
classIComXGSharpLib(DispatchBaseClass):
CLSID=IID('{D1965A94-0271-4C48-8AF6-2A56E256808B}')
coclass_clsid=IID('{2302D874-18FE-4281-B329-9517F1BC8311}')
defEncryptMd5(self,orignPwd=defaultNamedNotOptArg):
#ResultisaUnicodeobject
returnself._oleobj_.InvokeTypes(2,LCID,1,(8,0),((8,1),),orignPwd
)
defEncryptSHA1(self,orignPwd=defaultNamedNotOptArg):
#ResultisaUnicodeobject
returnself._oleobj_.InvokeTypes(1,LCID,1,(8,0),((8,1),),orignPwd
)
_prop_map_get_={
}
_prop_map_put_={
}
class_Object(DispatchBaseClass):
CLSID=IID('{65074F7F-63C0-304E-AF0A-D51741CB4A8D}')
coclass_clsid=IID('{2302D874-18FE-4281-B329-9517F1BC8311}')
defEquals(self,obj=defaultNamedNotOptArg):
returnself._oleobj_.InvokeTypes(1610743809,LCID,1,(11,0),((12,1),),obj
)
defGetHashCode(self):
returnself._oleobj_.InvokeTypes(1610743810,LCID,1,(3,0),(),)
#Resultisoftype_Type
defGetType(self):
ret=self._oleobj_.InvokeTypes(1610743811,LCID,1,(13,0),(),)
ifretisnotNone:
#SeeifthisIUnknownisreallyanIDispatch
try:
ret=ret.QueryInterface(pythoncom.IID_IDispatch)
exceptpythoncom.error:
returnret
ret=Dispatch(ret,u'GetType','{BCA8B44D-AAD6-3A86-8AB7-03349F4F2DA2}')
returnret
_prop_map_get_={
"ToString":(0,2,(8,0),(),"ToString",None),
}
_prop_map_put_={
}
#Defaultpropertyforthisclassis'ToString'
def__call__(self):
returnself._ApplyTypes_(*(0,2,(8,0),(),"ToString",None))
def__unicode__(self,*args):
try:
returnunicode(self.__call__(*args))
exceptpythoncom.com_error:
returnrepr(self)
def__str__(self,*args):
returnstr(self.__unicode__(*args))
def__int__(self,*args):
returnint(self.__call__(*args))
fromwin32com.clientimportCoClassBaseClass
#ThisCoClassisknownbythename'XGSharpLib.Security'
classSecurity(CoClassBaseClass):#ACoClass
CLSID=IID('{2302D874-18FE-4281-B329-9517F1BC8311}')
coclass_sources=[
]
coclass_interfaces=[
IComXGSharpLib,
_Object,
]
default_interface=IComXGSharpLib
IComXGSharpLib_vtables_dispatch_=1
IComXGSharpLib_vtables_=[
((u'EncryptSHA1',u'orignPwd',u'pRetVal',),1,(1,(),[(8,1,None,None),
(16392,10,None,None),],1,1,4,0,28,(3,0,None,None),0,)),
((u'EncryptMd5',u'orignPwd',u'pRetVal',),2,(2,(),[(8,1,None,None),
(16392,10,None,None),],1,1,4,0,32,(3,0,None,None),0,)),
]
_Object_vtables_dispatch_=1
_Object_vtables_=[
((u'ToString',u'pRetVal',),0,(0,(),[(16392,10,None,None),],1,2,4,0,28,(3,0,None,None),0,)),
((u'Equals',u'obj',u'pRetVal',),1610743809,(1610743809,(),[(12,1,None,None),
(16395,10,None,None),],1,1,4,0,32,(3,0,None,None),0,)),
((u'GetHashCode',u'pRetVal',),1610743810,(1610743810,(),[(16387,10,None,None),],1,1,4,0,36,(3,0,None,None),0,)),
((u'GetType',u'pRetVal',),1610743811,(1610743811,(),[(16397,10,None,"IID('{BCA8B44D-AAD6-3A86-8AB7-03349F4F2DA2}')"),],1,1,4,0,40,(3,0,None,None),0,)),
]
RecordMap={
}
CLSIDToClassMap={
'{D1965A94-0271-4C48-8AF6-2A56E256808B}':IComXGSharpLib,
'{2302D874-18FE-4281-B329-9517F1BC8311}':Security,
'{65074F7F-63C0-304E-AF0A-D51741CB4A8D}':_Object,
}
CLSIDToPackageMap={}
win32com.client.CLSIDToClass.RegisterCLSIDsFromDict(CLSIDToClassMap)
VTablesToPackageMap={}
VTablesToClassMap={
'{D1965A94-0271-4C48-8AF6-2A56E256808B}':'IComXGSharpLib',
'{65074F7F-63C0-304E-AF0A-D51741CB4A8D}':'_Object',
}NamesToIIDMap={
'_Object':'{65074F7F-63C0-304E-AF0A-D51741CB4A8D}',
'IComXGSharpLib':'{D1965A94-0271-4C48-8AF6-2A56E256808B}',
}
3、举例:Python调用C# dll中的 MD5加密方法。
总结:以上就是本站针对你的问题搜集整理的答案,希望对你有所帮助。