python解析.pyd文件的详细代码
作者:小和尚敲木头 发布时间:2022-08-04 22:16:45
标签:python,解析,.pyd
有的时候,为了对python文件进行加密,会把python模块编译成.pyd文件,供其他人调用。拿到一个.pyd文件,在没有文档说明的情况下,可以试试查看模块内的一些函数和类的用法。
首先 import XXX(pyd的文件名)
然后直接
print(dir(XXX))
print(help(xxx))
其中dir( ) 列出了属性和方法
而hlep()直接列出了其中的函数以及参数,并且是源码的函数名和类型,非常直观。
例如我这里的一个例子,输出如下:
['RC', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'call_func', 'collision_recover', 'disable_robot', 'drag_mode_enable', 'enable_robot', 'get_analog_input', 'get_analog_output', 'get_collision_level', 'get_current_line', 'get_digital_input', 'get_digital_output', 'get_joint_position', 'get_loaded_program', 'get_payload', 'get_program_state', 'get_rapidrate', 'get_robot_state', 'get_sdk_version', 'get_tcp_position', 'get_tool_id', 'get_user_frame_id', 'is_extio_running', 'is_in_collision', 'is_in_drag_mode', 'is_in_pos', 'is_on_limit', 'jog', 'jog_stop', 'joint_move', 'kine_forward', 'kine_inverse', 'linear_move', 'login', 'logout', 'power_off', 'power_on', 'program_abort', 'program_load', 'program_pause', 'program_resume', 'program_run', 'quaternion_to_rot_matrix', 'rot_matrix_to_quaternion', 'rot_matrix_to_rpy', 'rpy_to_rot_matrix', 'servo_j', 'servo_move_enable', 'servo_p', 'set_analog_output', 'set_collision_level', 'set_digital_output', 'set_error_handler', 'set_payload', 'set_rapidrate', 'set_tool_data', 'set_tool_id', 'set_user_frame_data', 'set_user_frame_id', 'shut_down', 'torque_control_enable', 'torque_feedforward']
Help on module jkrc:
NAME
jkrc - Example module that creates an extension type.
CLASSES
builtins.object
RC
class RC(builtins.object)
| RC objects
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| call_func(...)
| description
|
| collision_recover(...)
| description
|
| disable_robot(...)
| description
|
| drag_mode_enable(...)
| description
|
| enable_robot(...)
| description
|
| get_analog_input(...)
| description
|
| get_analog_output(...)
| description
|
| get_collision_level(...)
| description
|
| get_current_line(...)
| description
|
| get_digital_input(...)
| description
|
| get_digital_output(...)
| description
|
| get_joint_position(...)
| description
|
| get_loaded_program(...)
| description
|
| get_payload(...)
| description
|
| get_program_state(...)
| description
|
| get_rapidrate(...)
| description
|
| get_robot_state(...)
| description
|
| get_sdk_version(...)
| description
|
| get_tcp_position(...)
| description
|
| get_tool_id(...)
| description
|
| get_user_frame_id(...)
| description
|
| is_extio_running(...)
| description
|
| is_in_collision(...)
| description
|
| is_in_drag_mode(...)
| description
|
| is_in_pos(...)
| description
|
| is_on_limit(...)
| description
|
| jog(...)
| description
|
| jog_stop(...)
| description
|
| joint_move(...)
| description
|
| kine_forward(...)
| description
|
| kine_inverse(...)
| description
|
| linear_move(...)
| description
|
| login(...)
| Log in the specified robot
|
| logout(...)
| Log out the specified robot
|
| power_off(...)
| description
|
| power_on(...)
| description
|
| program_abort(...)
| description
|
| program_load(...)
| description
|
| program_pause(...)
| description
|
| program_resume(...)
| description
|
| program_run(...)
| description
|
| quaternion_to_rot_matrix(...)
| description
|
| rot_matrix_to_quaternion(...)
| description
|
| rot_matrix_to_rpy(...)
| description
|
| rpy_to_rot_matrix(...)
| description
|
| servo_j(...)
| description
|
| servo_move_enable(...)
| description
|
| servo_p(...)
| description
|
| set_analog_output(...)
| description
|
| set_collision_level(...)
| description
|
| set_digital_output(...)
| description
|
| set_error_handler(...)
| description
|
| set_payload(...)
| description
|
| set_rapidrate(...)
| description
|
| set_tool_data(...)
| description
|
| set_tool_id(...)
| description
|
| set_user_frame_data(...)
| description
.......
以上所述是小编给大家介绍的python解析.pyd文件的详细代码网站的支持!
来源:https://blog.csdn.net/w710537643/article/details/109725144


猜你喜欢
- 这一段要毕业,得折磨自己两个月....这段时间还是会摆弄了javascript的.大致在下面两个方面: 1.javascript的
- 前言Django提供了多种装饰器, 其中login_required可能是经常会使用到的。 这里介绍下四种使用此装饰器的办法。当然, 在使用
- 起步要介绍一个非常方便的 Django 扩展包-- django-hosts 。它能够提供在不同的子域名下访问不同的 app。例如,在项目中
- 根据用户权限设定用户可以访问哪些页面,用django实现一个简单的demo。1.models.py 文件class level(models
- 之前写过的组织结构和组织体系都太抽象了,读到标签系统我才有那种“略懂”的感觉。哈哈…书上提到的标签包括:导航情境式链接:常见的“更多”这种用
- 例子:1:www.jb51.net2:www.jb51.net3:www.jb51.net4:www.jb51.net5:www.jb51.
- 今天学习Python的时候,需要安装一个第三方库,Python Imaging Library,是Python下面一个非常强大的处理图像的工
- python PIL 将数组值转成图片安装 PIL 包pip install pillow将二维数据转换成单通道图片from PIL imp
- 如果你在爬虫过程中有遇到“您的请求太过频繁,请稍后再试”,或者说代码完全正确,可是爬虫过程中突然就访问不了,那么恭喜你,你的爬虫被对方识破了
- 一、Views文件夹 -> Shared文件夹下的 _Layout.cshtml 母版页@RenderBody当创建基于_Layout
- tornado中的协程是如何工作的协程定义Coroutines are computer program components that g
- (5)SELECT (5-2) DISTINCT(5-3)TOP(<top_specification>)(5-1) <s
- 介绍百度aip模块是用于实现百度云与用户接口,简单来说就是使用百度云所拥有的人工智能模块。模块使用pip install baidu-aip
- 目录生活中的例子慢查询如何去优化countlimit最大值最小值min&max生活中的例子我们是否看到过在公司中许多查询语句都是se
- GoModule无法下载国外的依赖包问题在Golang中,有两个概念非常容易弄错,第一个就是GoPath,第二个则是GoModule,很多初
- 使用JDBC连接MySQL数据库进行数据插入的时候,特别是大批量数据连续插入(10W+),如何提高效率呢?在JDBC编程接口中Stateme
- curl 和 Python requests 都是发送 HTTP 请求的强大工具。 虽然 curl 是一种命令行工具,可让您直接从终端发送请
- 一、需求需求很简单,就是需要查询一个报表,只有1个表,数据量大约60万左右,但是中间有些逻辑。先说明一下服务器配置情况:1核CPU、2GB内
- DROP TABLE 数据表名称 (永久性删除一个数据表) 删除记录:delete from&nbs
- 在用pymysql操作数据库的过程中,给sql语句传参碰到了很多问题,网上传参策略很多,这里推荐两种单个传参用%s,写起来比较简单:fiel