如何将一段Python代码生成库
如何将Python写的一段代码生成pyd形式的库?
我知道的方法有:将这段Python代码扩展成C代码,然后通过VC将这段C代码生成后缀为.pyd的动态链接库。
不想用这么笨的方法,请问有没有比较简单的方法?谢谢!
顶一下,关注中
还真没什么好办法,pyd其实就是dll
只知道pyc
哎,看来只能用笨方法了
2樓兄弟說了,pyd就是dll。
進來接分:)
相关问答:
我每次上传的文件读到的数据都不正确。2M 的图片读得10多K 。。哪位大侠可以帮帮我啊。
#!D:\ProgrammerTools\python26\python.exe
#encoding=utf-8
import cgitb
import os
cgitb.enable()
import cgi,urllib ......
在list中添加一个类的局部变量 这样做是否合法 请看下面例子:
Python code:
class A():
def __init__( self ):
self.__a = 0
self.__b = 'hello'
def get_a( self ):
ret ......
C#里面用using System.Security.Cryptography; RSACryptoServiceProvider加密过的消息
用Python Crypto中RSA的方法 能直接 解吗?
RSA加密方式不是统一的吗?需要注意些什么?
有帮助。但是没解决问题。。。
......
Python code:
class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def paint(self, factory):
point = factory.getPoint()
......
哪位前辈可以给我个Python写的【可运行的源代码】,实现以下功能:
1.对指定端口的监听并截取【指定】数据包
2.能对【自己定义的】协议包进行解析
万分感谢!!!
我来顶 thy38
......