相关疑难解决方法(0)

如何确定我的python shell是否在OS X上以32位或64位模式执行?

我需要一种方法来告诉shell在shell中的模式.

我试过看平台模块,但它似乎只是告诉你"关于位体系结构和用于可执行文件的链接格式":二进制编译为64位虽然(我在OS X 10.6上运行)所以它似乎总是报告64位,即使我使用这里描述的方法强制32位模式).

python macos

386
推荐指数
15
解决办法
30万
查看次数

如何检测Python是否作为64位应用程序运行?

可能重复:
如何确定我的python shell是在32位还是64位模式下执行?

我正在使用Windows注册表做一些工作.根据您是以32位还是64位运行python,键值将不同.如何检测Python是作为64位应用程序而不是32位应用程序运行?

注意:我对检测32位/ 64位Windows不感兴趣 - 只是Python平台.

python 64-bit

105
推荐指数
2
解决办法
12万
查看次数

用Python检测64位操作系统(windows)

有谁知道我将如何检测Windows在Python下的位版本.我需要知道这是一种为Program Files使用正确文件夹的方法.

非常感谢

python windows 64-bit

37
推荐指数
6
解决办法
4万
查看次数

nltk模块中的类似方法在不同的机器上产生不同的结果.为什么?

我已经教过一些用Python进行文本挖掘的入门课程,并且该课程尝试了与提供的练习文本类似的方法.有些学生对text1.similar()的结果与其他学生不同.

所有版本等都是一样的.

有谁知道为什么会出现这些差异?谢谢.

在命令行使用的代码.

python
>>> import nltk
>>> nltk.download() #here you use the pop-up window to download texts
>>> from nltk.book import *
*** Introductory Examples for the NLTK Book ***
Loading text1, ..., text9 and sent1, ..., sent9
Type the name of the text or sentence to view it.
Type: 'texts()' or 'sents()' to list the materials.
text1: Moby Dick by Herman Melville 1851
text2: Sense and Sensibility by Jane Austen 1811
text3: The Book of Genesis
text4: …
Run Code Online (Sandbox Code Playgroud)

python nlp similarity corpus nltk

15
推荐指数
2
解决办法
1846
查看次数

标签 统计

python ×4

64-bit ×2

corpus ×1

macos ×1

nlp ×1

nltk ×1

similarity ×1

windows ×1