20230507使用python3批量转换DOCX文档为TXT

news2024/10/6 20:26:18

20230507使用python3批量转换DOCX文档为TXT
2023/5/7 20:22

WIN10使用python3.11

# – coding: gbk –
import os
from pdf2docx import Converter
from win32com import client as wc
"""这里需要安转包pywin32com"""

# 读取pdf文件文本内容
def DocxToTxt(inputFinallyPath, outputFinallyPath):
    wordhandle = wc.Dispatch("Word.Application")
    wordhandle.Visible = 0  # 后台运行,不显示
    wordhandle.DisplayAlerts = 0  # 不警告
    doc = wordhandle.Documents.Open(inputFinallyPath)
    doc.SaveAs(outputFinallyPath, 4)  # txt=4, html=10, docx=16, pdf=17
    doc.Close


if __name__ == '__main__':

        # 输入路径
        inputPath = r'D:\pythonproject\pdf_to_txt\input'
        #输出路径,最好采用绝对路径
        outputPath = r'D:\pythonproject\pdf_to_txt\output'
      
        # 将文件夹的文件列举出来
        pdfList = os.listdir(inputPath)
        # 批量读取存储
        pdf_num = 1
        for li in pdfList:
            print(li)
            inputFinallyPath = inputPath + '/' + li
            li = li.replace('.docx', '.txt')
            outputFinallyPath = outputPath + '/' + li
            DocxToTxt(inputFinallyPath, outputFinallyPath)
            print('第 %d 篇docx已转换为txt' % pdf_num)
            pdf_num = pdf_num + 1
        print('共计%d篇docx文章已完全转换为txt' % (pdf_num-1))

 


使用google翻译将88份日语DOCX字幕翻译成为简体中文版本了!
Microsoft Windows [版本 10.0.19044.2728]
(c) Microsoft Corporation。保留所有权利。

C:\Users\QQ>python3

C:\Users\QQ>python

C:\Users\QQ>python
Python 3.11.3 (tags/v3.11.3:f3909b8, Apr  4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> from pdf2docx import Converter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pdf2docx'
>>>

 


Microsoft Windows [版本 10.0.19044.2728]
(c) Microsoft Corporation。保留所有权利。

C:\Users\QQ>pip install pdf2docx
Collecting pdf2docx
  Downloading pdf2docx-0.5.6-py3-none-any.whl (148 kB)
     ---------------------------------------- 148.4/148.4 kB 368.3 kB/s eta 0:00:00
Collecting PyMuPDF>=1.19.0
  Downloading PyMuPDF-1.22.2-cp311-cp311-win_amd64.whl (11.7 MB)
     ---------------------------------------- 11.7/11.7 MB 12.8 MB/s eta 0:00:00
Collecting python-docx>=0.8.10
  Downloading python-docx-0.8.11.tar.gz (5.6 MB)
     ---------------------------------------- 5.6/5.6 MB 1.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting fonttools>=4.24.0
  Downloading fonttools-4.39.3-py3-none-any.whl (1.0 MB)
     ---------------------------------------- 1.0/1.0 MB 12.8 MB/s eta 0:00:00
Collecting numpy>=1.17.2
  Downloading numpy-1.24.3-cp311-cp311-win_amd64.whl (14.8 MB)
     ---------------------------------------- 14.8/14.8 MB 21.1 MB/s eta 0:00:00
Collecting opencv-python>=4.5
  Downloading opencv_python-4.7.0.72-cp37-abi3-win_amd64.whl (38.2 MB)
     ---------------------------------------- 38.2/38.2 MB 12.6 MB/s eta 0:00:00
Collecting fire>=0.3.0
  Downloading fire-0.5.0.tar.gz (88 kB)
     ---------------------------------------- 88.3/88.3 kB 4.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting termcolor
  Downloading termcolor-2.3.0-py3-none-any.whl (6.9 kB)
Collecting lxml>=2.3.2
  Downloading lxml-4.9.2-cp311-cp311-win_amd64.whl (3.8 MB)
     ---------------------------------------- 3.8/3.8 MB 10.0 MB/s eta 0:00:00
Installing collected packages: termcolor, six, PyMuPDF, numpy, lxml, fonttools, python-docx, opencv-python, fire, pdf2docx
  WARNING: The script f2py.exe is installed in 'C:\Users\QQ\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts fonttools.exe, pyftmerge.exe, pyftsubset.exe and ttx.exe are installed in 'C:\Users\QQ\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  DEPRECATION: python-docx is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for python-docx ... done
  DEPRECATION: fire is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for fire ... done
  WARNING: The script pdf2docx.exe is installed in 'C:\Users\QQ\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed PyMuPDF-1.22.2 fire-0.5.0 fonttools-4.39.3 lxml-4.9.2 numpy-1.24.3 opencv-python-4.7.0.72 pdf2docx-0.5.6 python-docx-0.8.11 six-1.16.0 termcolor-2.3.0

[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: C:\Users\QQ\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip

C:\Users\QQ>

 

 


Microsoft Windows [版本 10.0.19044.2728]
(c) Microsoft Corporation。保留所有权利。

C:\Users\QQ>pip install win32com
ERROR: Could not find a version that satisfies the requirement win32com (from versions: none)
ERROR: No matching distribution found for win32com

[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: C:\Users\QQ\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip

C:\Users\QQ>
C:\Users\QQ>pip install pypwin32
ERROR: Could not find a version that satisfies the requirement pypwin32 (from versions: none)
ERROR: No matching distribution found for pypwin32

[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: C:\Users\QQ\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip

C:\Users\QQ>
C:\Users\QQ>pip install  pypiwin32
Collecting pypiwin32
  Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting pywin32>=223
  Downloading pywin32-306-cp311-cp311-win_amd64.whl (9.2 MB)
     ---------------------------------------- 9.2/9.2 MB 895.2 kB/s eta 0:00:00
Installing collected packages: pywin32, pypiwin32
Successfully installed pypiwin32-223 pywin32-306

[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: C:\Users\QQ\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip

C:\Users\QQ>
C:\Users\QQ>

 

 

 


Microsoft Windows [版本 10.0.19044.2728]
(c) Microsoft Corporation。保留所有权利。

C:\Users\QQ>d:

D:\>dir *.pty
 驱动器 D 中的卷是 DATA
 卷的序列号是 547F-1046

 D:\ 的目录

找不到文件

D:\>dir *.py
 驱动器 D 中的卷是 DATA
 卷的序列号是 547F-1046

 D:\ 的目录

2023/05/07  19:55             1,221 pdf2doc2.py
               1 个文件          1,221 字节
               0 个目录 195,912,142,848 可用字节

D:\>python pdf2doc2.py
SyntaxError: Non-UTF-8 code starting with '\xd5' in file D:\pdf2doc2.py on line 4, but no encoding declared; see https://peps.python.org/pep-0263/ for details

D:\>


Microsoft Windows [版本 10.0.19044.2728]
(c) Microsoft Corporation。保留所有权利。

C:\Users\QQ>d:

D:\>dir *.pty
 驱动器 D 中的卷是 DATA
 卷的序列号是 547F-1046

 D:\ 的目录

找不到文件

D:\>dir *.py
 驱动器 D 中的卷是 DATA
 卷的序列号是 547F-1046

 D:\ 的目录

2023/05/07  19:55             1,221 pdf2doc2.py
               1 个文件          1,221 字节
               0 个目录 195,912,142,848 可用字节

D:\>python pdf2doc2.py
SyntaxError: Non-UTF-8 code starting with '\xd5' in file D:\pdf2doc2.py on line 4, but no encoding declared; see https://peps.python.org/pep-0263/ for details

D:\>
D:\>python pdf2doc2.py
  File "D:\pdf2doc2.py", line 36
    print('共计%d篇docx文章已完全转换为txt' pdf_num-1))
                                           ^
SyntaxError: unmatched ')'

D:\>python pdf2doc2.py
MIDE-599.google.docx
第 1 篇docx已转换为txt
OAE-101.google.docx
第 2 篇docx已转换为txt
OAE-165.google.docx
第 3 篇docx已转换为txt
OFJE-139 1.google.docx
第 4 篇docx已转换为txt
OFJE-139 2.google.docx
第 5 篇docx已转换为txt
OFJE-189.google.docx
第 6 篇docx已转换为txt
OFJE-236.google.docx
第 7 篇docx已转换为txt
pSSNI-473.google.docx
第 8 篇docx已转换为txt
SIVR-001.google.docx
第 9 篇docx已转换为txt
SIVR-002.google.docx
第 10 篇docx已转换为txt
SIVR-003.google.docx
第 11 篇docx已转换为txt
SIVR-012 1.google.docx
第 12 篇docx已转换为txt
SIVR-012 2.google.docx
第 13 篇docx已转换为txt
SIVR-015 1.google.docx
第 14 篇docx已转换为txt
SIVR-015 2.google.docx
第 15 篇docx已转换为txt
SIVR-016 1.google.docx
第 16 篇docx已转换为txt
SIVR-016 2.google.docx
第 17 篇docx已转换为txt
SIVR-017 1.google.docx
第 18 篇docx已转换为txt
SIVR-017 2.google.docx
第 19 篇docx已转换为txt
SIVR-017 3.google.docx
第 20 篇docx已转换为txt
SIVR-033 1.google.docx
第 21 篇docx已转换为txt
SIVR-033 2.google.docx
第 22 篇docx已转换为txt
SIVR-033 3.google.docx
第 23 篇docx已转换为txt
SIVR-033 4.google.docx
第 24 篇docx已转换为txt
SIVR-033 5.google.docx
第 25 篇docx已转换为txt
SIVR-033 6.google.docx
第 26 篇docx已转换为txt
SIVR-034 1.google.docx
第 27 篇docx已转换为txt
SIVR-034 2.google.docx
第 28 篇docx已转换为txt
SIVR-034 3.google.docx
第 29 篇docx已转换为txt
SIVR-044 1.google.docx
第 30 篇docx已转换为txt
SIVR-044 2.google.docx
第 31 篇docx已转换为txt
SIVR-061 1.google.docx
第 32 篇docx已转换为txt
SIVR-061 2.google.docx
第 33 篇docx已转换为txt
SIVR-061 3.google.docx
第 34 篇docx已转换为txt
SIVR-061 4.google.docx
第 35 篇docx已转换为txt
SIVR-067 1.google.docx
第 36 篇docx已转换为txt
SIVR-067 2.google.docx
第 37 篇docx已转换为txt
SIVR-067 3.google.docx
第 38 篇docx已转换为txt
SNIS-786.google.docx
第 39 篇docx已转换为txt
SNIS-800.google.docx
第 40 篇docx已转换为txt
SNIS-850 1.google.docx
第 41 篇docx已转换为txt
SNIS-850 2.google.docx
第 42 篇docx已转换为txt
SNIS-872.google.docx
第 43 篇docx已转换为txt
SNIS-896.google.docx
第 44 篇docx已转换为txt
SNIS-919.google.docx
第 45 篇docx已转换为txt
SNIS-964.google.docx
第 46 篇docx已转换为txt
SNIS-964.google2.docx
第 47 篇docx已转换为txt
SNIS-986.google.docx
第 48 篇docx已转换为txt
SSNI-009.google.docx
第 49 篇docx已转换为txt
SSNI-030.google.docx
第 50 篇docx已转换为txt
SSNI-054.google.docx
第 51 篇docx已转换为txt
SSNI-077.google.docx
第 52 篇docx已转换为txt
SSNI-101.google.docx
第 53 篇docx已转换为txt
SSNI-127.google.docx
第 54 篇docx已转换为txt
SSNI-152.google.docx
第 55 篇docx已转换为txt
SSNI-178.google.docx
第 56 篇docx已转换为txt
SSNI-205.google.docx
第 57 篇docx已转换为txt
SSNI-229.google.docx
第 58 篇docx已转换为txt
SSNI-254.google.docx
第 59 篇docx已转换为txt
SSNI-279.google.docx
第 60 篇docx已转换为txt
SSNI-301.google.docx
第 61 篇docx已转换为txt
SSNI-322.google.docx
第 62 篇docx已转换为txt
SSNI-344.google.docx
第 63 篇docx已转换为txt
SSNI-388.google.docx
第 64 篇docx已转换为txt
SSNI-409.google.docx
第 65 篇docx已转换为txt
SSNI-432.google.docx
第 66 篇docx已转换为txt
SSNI-452.google.docx
第 67 篇docx已转换为txt
SSNI-473.google.docx
第 68 篇docx已转换为txt
SSNI-493.google.docx
第 69 篇docx已转换为txt
SSNI-516.google.docx
第 70 篇docx已转换为txt
SSNI-542.google.docx
第 71 篇docx已转换为txt
SSNI-566.google.docx
第 72 篇docx已转换为txt
SSNI-589.google.docx
第 73 篇docx已转换为txt
SSNI-618.google.docx
第 74 篇docx已转换为txt
SSNI-644.google.docx
第 75 篇docx已转换为txt
SSNI-674.google.docx
第 76 篇docx已转换为txt
SSNI-703.google.docx
第 77 篇docx已转换为txt
SSNI-730.google.docx
第 78 篇docx已转换为txt
TEK-067.google.docx
第 79 篇docx已转换为txt
TEK-071.google.docx
第 80 篇docx已转换为txt
TEK-072.google.docx
第 81 篇docx已转换为txt
TEK-073.google.docx
第 82 篇docx已转换为txt
TEK-076.google.docx
第 83 篇docx已转换为txt
TEK-079只有音频.google.docx
第 84 篇docx已转换为txt
TEK-080.google.docx
第 85 篇docx已转换为txt
TEK-081只有音频.google.docx
第 86 篇docx已转换为txt
TEK-083只有音频.google.docx
第 87 篇docx已转换为txt
TEK-097.google.docx
第 88 篇docx已转换为txt

D:\>


参考资料:
python 批量 转换 DOCX TXT


https://blog.csdn.net/weixin_46255747/article/details/129961988
python实现批量docx转txt


ModuleNotFoundError: No module named 'pdf2docx'


python win32com pip install


https://blog.csdn.net/qq_45662588/article/details/130315080
python3.9之安装win32com库的解决办法


https://blog.csdn.net/longe20111104/article/details/129754624
pip install win32com报错解决办法
pip install  pypiwin32


SyntaxError: Non-UTF-8 code starting with '\xd5' in file D:\pdf2doc2.py on line 4, but no encoding d


https://blog.csdn.net/coco_apple/article/details/113437552
SyntaxError: Non-UTF-8 code starting with ‘\xd5‘ in file
# – coding: gbk –

 

 

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/499696.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

探秘二分查找中的数学奇迹:如何手动求解整数x的平方根

本篇博客会讲解力扣“69. x 的平方根”这道题的解题思路。这是题目链接。 大家先来审下题&#xff1a; 以及示例&#xff1a; 还有提示&#xff1a; 本题常规的思路有&#xff1a;暴力查找、转换成指数和对数、二分查找、牛顿迭代。 转换成指数和对数的方法非常简单&#…

接口自动化测试框架9项必备功能有哪些?你一定不知道

当你准备使用一个接口测试框架或者自造轮子的时候&#xff0c;或许你需要先了解下一个接口自动化测试框架必须具备什么功能。 一、校验   这个很好了解&#xff0c;如果没有校验&#xff0c;单纯的执行接口的话&#xff0c;那就谈不上测试了。所以支持对返回值校验是一个必须…

[Golang] 爬虫实战-获取动态页面数据-获取校招信息

&#x1f61a;一个不甘平凡的普通人&#xff0c;致力于为Golang社区和算法学习做出贡献&#xff0c;期待您的关注和认可&#xff0c;陪您一起学习打卡&#xff01;&#xff01;&#xff01;&#x1f618;&#x1f618;&#x1f618; &#x1f917;专栏&#xff1a;算法学习 &am…

Solr(1):Solr概述

1 概述 Solr 是一个基于 Apache Lucene 之上的搜索服务器&#xff0c;它是一个开源的、基于 Java 的信息检索库。它旨在驱动功能强大的文档检索应用程序 - 无论您需要根据用户的查询将数据服务到何处&#xff0c;Solr 都可以为您服务。Solr与应用程序的集成以为您服务。 下面…

es 7.x 通过DSL语句添加doc数据

一 在es中doc数据的crud操作 1.1 说明 本案例操作 接上一篇的基础上进行操作。 1.2 添加doc 方式为post http://localhost:9200/order_item/_doc 添加文档数据 必须是post提交&#xff0c;不能是put 1.3 查看文档数据 http://localhost:9200/order_item/_doc/_searc…

118-Linux_数据库_索引

文章目录 一.索引是什么?二.索引为什么选择b树三.测试索引1.在mysql中创建数据库 test_indexdb2.在test_indexdb中创建表 test_index3.运行程序向表中插入1万条数据&#xff0c;都是字符串4. 查询验证 一.索引是什么? 索引是一种特殊的文件&#xff0c;它包含着对数据表里所…

浅谈osgEarth操控器类的createLocalCoordFrame函数如何将局部坐标系的点转为世界坐标系下的Martix(ENU坐标)

在osgEarth操控器类的EarthManipulator中的如下函数&#xff1a; void EarthManipulator::setLookAt(const osg::Vec3d& center,double azim,double pitch,double range,const osg::Vec3d& posOffset) {setCenter( center );.... //…

二、PEMFC基础之电化学与反应动力学

二、PEMFC基础之电化学与反应动力学 1.电流、电流密度2.反应速率常数3.交换电流密度4.电化学动力学奠基石B-V方程5.活化损失计算Tafel公式6.计算案例 1.电流、电流密度 由法拉第定律 i d Q d t n F d N d t i\frac{dQ}{dt}\frac{nFdN}{dt} idtdQ​dtnFdN​ j i A j\frac{…

查询缓存实现、缓存更新策略选择、解决缓存穿透缓存雪崩缓存击穿问题

文章目录 1 什么是缓存?1.1 为什么要使用缓存1.2 如何使用缓存 2 给商户信息查询业务添加缓存2.1 缓存模型和思路2.2 代码如下 3 缓存更新策略3.1 数据库缓存不一致解决方案&#xff1a;3.2 数据库和缓存不一致采用什么方案3.3 删除缓存还是更新缓存&#xff1f;3.4 如何保证缓…

MySQL --- DQL

使用DDL语句来操作数据库以及表结构&#xff08;数据库设计&#xff09;使用DML语句来完成数据库中数据的增、删、改操作&#xff08;数据库操作&#xff09; 学习数据库操作方面的内容&#xff1a;查询&#xff08;DQL语句&#xff09;。 查询操作我们分为两部分学习&#…

chatgpt如何接入本地知识库?我们来看看EMNLP 2022 INFO是如何融入本地知识的

一、概述 title&#xff1a;You Truly Understand What I Need : Intellectual and Friendly Dialogue Agents grounding Knowledge and Persona 论文地址&#xff1a;You Truly Understand What I Need : Intellectual and Friendly Dialog Agents grounding Persona and Know…

基于S/Key协议的身份认证系统设计与实现【python】

实验内容 1 、 身份认证系统设计 设计身份认证系统的功能、主要界面、主要软件模块&#xff0c;以及采用的认证技术路线和方法。 2 、 编程实现所设计的身份认证系统 在C、Python或Java程序设计环境下&#xff0c;编程实现基于S/Key协议的身份认证系统。要求实现的身份认证…

计算机中丢失msvcp140.dll无法启动此程序怎么办?msvcp140.dll在哪里

电脑系统中的 msvcp140.dll 文件是 Microsoft Visual C Redistributable 组件的一部分&#xff0c;它们提供了许多在 Windows 操作系统中运行的应用程序所需的重要函数和库。如果丢失了 msvcp140.dll 文件&#xff0c;你可能会遇到多种错误&#xff0c;比如无法运行应用程序、系…

【RabbitMQ】安装及六种模式

文章目录 安装rabbitmq镜像访问容器内部15672端口映射到外面的端口地址RabbitMQ六种模式Hello world模式Work queues模式Publish/Subscribe模式交换机fanout类型 Routing模式Topics模式RPC模式 rabbitmq&#xff1a;0->1的学习 学习文档&#xff1a;https://www.cnblogs.com…

Java集合之双列集合

双列集合特点 双列集合一次需要添加一对数据&#xff0c;分别是键和值键不能重复&#xff0c;值可以重复键和值是一一对应的&#xff0c;每一个键只能找到自己对应的值键 值这个整体称为“键值对”或者“键值对对象”&#xff0c;Java中叫“Entry对象” 双列集合的体系结构 Ma…

linux系统systemd初始化进程

前言&#xff1a;目前绝大多数服务器系统以及从RHEL6换成RHEL7了&#xff0c;以前习惯使用service来管理系统服务的&#xff0c;那么现在就比较郁闷了&#xff0c;RHEL7系统中使用systemctl命令来管理服务。 systemctl启动、重启、停止、查看状态命令&#xff1a; systemctl …

算法竞赛字符串篇之C++中string的成员函数

2023年5月7日&#xff0c;周日中午&#xff1a; 今天决定从字符串这个知识点开始学起&#xff0c;记录一下我今天的字符串学习。 不定期更新。 相关的英文文档&#xff1a; https://cplusplus.com/reference/string/string/ 容量方面的成员函数&#xff1a; empty&#xff…

基于AT89C51单片机的电子闹钟设计与仿真

点击链接获取Keil源码与Project Backups仿真图: https://download.csdn.net/download/qq_64505944/87761718?spm=1001.2014.3001.5503 源码获取 主要内容: 基于51单片机设计一个电子闹钟,至少具有以下功能:时间的设定、时间的调整、闹钟的设定、温度的设定。 基本要求:…

排队论_M/M/1/inf/inf 问题

例:某修理店只有一一个修理工人&#xff0c;来修理的顾客到达数服从泊松分布&#xff0c;平均每小时4人;修理时间服从负指数分布&#xff0c;平均需6分钟。求: (1)修理店空闲的概率; (2)店内有3个顾客的概率; (3)店内至少有1个顾客的概率; (4)店内顾客的平均数; (5)顾客在店内的…