Skip to Content
Python数据处理
book

Python数据处理

by Jacqueline Kazil, Katharine Jarmul
July 2017
Intermediate to advanced
398 pages
11h 54m
Chinese
Posts & Telecom Press
Content preview from Python数据处理
学习命令行
347
想要在命令行中运行安装好的程序,你可以使用
start
命令。试着输入:
start "" "http://google.com"
这个命令应该会打开你的默认浏览器,然后跳转到
Google
首页。更多内容可查阅
start
令的文档(
https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/
start.mspx?mfr=true
)。
我们已经学习了用命令行如何运行文件,下面研究如何搜索和查找计算机中的文件和文
件夹。
C.2.4
 利用命令行进行搜索
首先下载一个可用的语料库。如果你用的是
Windows Vista
或更新的版本,你应该能够运
PowerShell
命令。试着输入下列命令来加载
PowerShell
powershell
你应该会看到类似这样的新提示符:
Windows PowerShell
...
PS C:\Users\Katharine>
现在我们已经进入了
PowerShell
,我们来下载一个用于查找的文件(注意,这两行命令应
该在同一行中输入,被分成两行是为了适应页面宽度):
Invoke-WebRequest -OutFile C:\Downloads\text.zip
http://corpus.byu.edu/glowbetext/samples/text.zip
如果你安装的
PowerShell
不是
3.0
版或更高版本,上面这个命令会报错。如果有报错的话,
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据科学中的实用统计学(第2版)

数据科学中的实用统计学(第2版)

Peter Bruce, Andrew Bruce, Peter Gedeck
Java持续交付

Java持续交付

Daniel Bryant, Abraham Marín-Pérez
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115459190