问题标签 [python-3.7]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
pandas - 如何 - 将 python 生成器转换为 pandas 数据框
我对 python 和 pandas 数据框非常陌生,我正在努力思考如何将 python 生成器转换为 pandas 数据框。
我想要做的是使用这个产生生成器的函数将一个大表提取成块:
然后我想将结果附加或连接到熊猫数据框:
但这不起作用并给我错误消息:
谢谢您的帮助!
python - ASYNC - Pandas read_sql 和 asyncio?
有人可以为我指出如何解决以下问题的正确方向。我正在尝试使用 pandas.read_sql 和 asyncio 提出解决方案。我想将表记录从 1 个数据库迁移到另一个数据库。
我想做以下事情:
我有这个功能:
我想并行运行这些,而不是一一运行。
beautifulsoup - 意外缩进python 3.7 pycharm
我对python很陌生。但我想从在线招聘门户网站中提取一些招聘信息。
使用以下代码,我想提取特定网站的职位发布的标题:
我收到此错误消息:
我尝试了许多其他网站上推荐的不同方法,但没有任何效果。我只是不知道问题是什么。我尝试了不同的空格,但我只是不明白我做错了什么。
有任何想法吗?我将不胜感激!
非常感谢 :-)
pip - python3.7没有pip版本?
我已经在我的 Mac 和 Ubuntu 18.04 上安装了 python3.7。但似乎没有新的 pip 可以为 python 3.7 安装模块。
这是怎么回事?我什么时候可以安装 3.7 版本的 pip?
python - 如何在 Windows 10 PC 上使用 Python 3.7 和 Mutagen 写入 ID3 标签 WFED URL 框架
我一直在 Windows 10 PC 上使用 Python 3.7 和 Mutagen 创建 MP3 标签编辑器。我想写入 URL 框架 WFED,但它没有响应。我已经能够使用下面的代码成功更新另一个 URL 框架 WXXX。
下面的代码适用于 WXXX
下面的代码不适用于 WFED
任何人都可以就我如何写信给 WFED 提供任何指导吗?
python - Is it possible to write to input / read output from a detached subprocess?
I'm trying to manage a game server (a server for players to join, I didn't create the game) through a Python module. I noticed, however, that the server stops when the Python script stops to ask for input (from input()). Is there any way around this?
The server is ran as a subprocess:
server = subprocess.Popen("D:\Windows\System32\cmd.exe", stdin=subprocess.PIPE, stdout=subprocess.PIPE) followed by server.stdin.write calls to run the server exe file
The server seems to work fine if ran without a stdout pipe, but I still need to receive output from it without it stopping if possible. I apologize for the vague question and my lack of python knowledge.
python - 使用 pyinstaller 的错误消息
我正在尝试将脚本转换为exe使用 pyinstaller 和 Python3.70(在 Windows 10 上)
当我运行命令时
libcrypto该程序运行良好,除了一些关于等的警告。
但是当我尝试运行exe在 dist 文件夹中找到的文件时,我收到以下错误消息:
mysql - 用于 python 3.7 的 MySQL 包
我需要将数据保存到 MySQL 数据库中,我的问题是我找不到包...
探索的解决方案:
试图从 Pycharm 安装 MySQLdb,它说不存在。
因此,如果有人有 python 3.7 的替代品,或者知道如何获得 3.7 版的连接器,我会很高兴。
python - Pygame(在 Python 3.7 上)在 cmd 提示符下安装显示“python”无法识别
编辑:我重新安装了python 3.7,但是这次我在安装过程中选中了该框,以使其将Python添加到路径中(我尝试过,但由于某种原因它从未起作用)。我一步一步地按照第一个链接(视频)安装了 pygame。(:
我正在运行 Python 3.7 并安装了 pip 以及下载的 pygame。我搜索了有关如何下载和让 pygame 工作的 YouTube 视频,最有用的视频是:https ://www.youtube.com/watch?v=vGb5EX3XjdI&t=116s
同时我还发现我可能需要更改我的 PATH:https ://www.pythoncentral.io/add-python-to-path-python-is-not-recognized-as-an-internal-or-external-命令/
我开辟了一条新路径,我始终确保我在正确的驱动器中,但我仍然无法弄清楚为什么无法安装 pygame 以及为什么 windows 命令提示符告诉我“'python' 未被识别为内部或外部命令、可运行的程序或批处理文件。”
我是 python 编程的新手,想让我的第一个应用程序成为一个简单的俄罗斯方块游戏或其他东西,但我在解决这个问题时遇到了问题。如果有任何帮助,请感谢我的帮助。