由买买提看人间百态

topics

全部话题 - 话题: commands
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
Z**R
发帖数: 1233
1
来自主题: Military版 - [BBC] Who should command in Libya?
By Jonathan Marcus BBC diplomatic correspondent
When Britain and France presented themselves as prime movers in the military
operation over Libya, many wondered if they might be in command. It was,
after all, French aircraft that fired the first shots.
Yet it was the US that was inevitably going to be the key military player in
the opening phase, bringing crucial capabilities to bear for the
destruction of Libya's fixed air defences.
US Defence Secretary Robert Gates said on Sunday that Washingt... 阅读全帖
d*******y
发帖数: 137
2
Someone previously asserted that God commanded Abraham to burn Issac and
used it as proof that God ordered his people to do evil things. Quote of
the question:
"What about Abraham? Did God not command him to burn his son Issac as a
offering? Yet you clearly write with emphasis that God "NEVER" command "
anyone" to do such a evil thing."
My personal answer is below.
First of all, Bible clearly says that God tested Abraham (Genesis 22:1 “
After these things God tested Abraham …”). There is a di... 阅读全帖
s*y
发帖数: 933
3
This is a reply to dreambaby's post regarding "did God command Abraham to burn his son Issac as an offering":
http://www.mitbbs.com/article_t/TrustInJesus/741397.html
That "someone" you mentioned in the post linked above was me. After reading your post, on one hand, I'm glad you decided to answer and explain more about your views. But on the other hand I'm a bit sad to see that all your explanations boil down to just playing semantics. Not only does this not help in explaining your views, it act... 阅读全帖
e******d
发帖数: 310
4
来自主题: Linux版 - A question about two linux commands
If I want to show all *.cpp files in the current dir tree, the following
command can be used
================
find ./ -name "*\.cpp"
================
If I want to show all *.h and *.cpp files in the current dir tree in one command, what should be used? I tried the following command, it does not work,
=====================
find ./ -name "*\.(h|cpp)"
====================
If I want to grep all *.h and *.cpp files for text "xxx" in the current dir tree in one command, what command should be used?
... 阅读全帖
w*******y
发帖数: 60932
5
来自主题: _DealGroup版 - 【$】Steam Powered: Command & Conquer Day
Command and Conquer Deals:
http://store.steampowered.com/sale/ea_week
Command and Conquer 4: Tiberian Twilight:
http://store.steampowered.com/app/47700/
(Was $49.99, Now $33.49)
Command & Conquer: Kane's Wrath:
http://store.steampowered.com/app/24810/
(Was $19.99, Now $9.99)
Command & Conquer: Tiberium Wars:
http://store.steampowered.com/app/24790/
(Was $29.99, Now $14.99)
Command & Conquer: Red Alert 3 - Uprising:
http://store.steampowered.com/app/24800/
(Was $19.99, Now $4.99)
Command
w*******y
发帖数: 60932
6
OfficeMax.com Get 100% back in Rewards on Post-it craft paper, Crayola Color
Explosion and 3M hooks, mounting & spray 11/06-11/07
MaxPerks Rewards offers for the week: LINK. Log into your rewards account
to view ad until OfficeMax.com MaxPerks page is updated for this week.
Online Only. Sunday and Monday only.
100% Bonus Reward promotion on select Post-it 3M Command(TM), and Crayola
supplies, valid online only November 6, 2011 thru November 7, 2011; event
includes:
Post-it Full Adhesive Craft P... 阅读全帖
i*****e
发帖数: 2810
7
It is not so difficult if your command is something like "ls". However,
if you want to keep your child process running and keep on sending it
the command and receiving result, you need to have some trick to
identify the end of the result stream to each specific command.
I remember you can find a Command Console article in javasoft.com site.
Check the Swing Connection and look for article for Swing Text. You will
find it, but it is for some simple command like "ls".
S*******h
发帖数: 7021
8
在Eclipse里写了一个HelloWord program. 用了Assert statement. Tutorial说需要
先run java -ea command 去enable assert
public class HellowWorld {
public static void main(String[] args) {
int x = 5;
int y = 7;
assert (x > y): "stuff";
System.out.println("passed");
}
}
1. java -ea HelloWorld 只能在command line console 底下跑吗? 有没有办法让它
在 Eclipse->Run application 前 在Eclipse里 run 这command?
2. 在command line console 里试了 C:\workspace\Test\src> java -ea HelloWorld
结果返回 "could not find the main class HelloW... 阅读全帖
g****g
发帖数: 1828
9
比如我自己做了一个可执行文件command,方到/usr/local/bin/下。
$ which command
/usr/local/bin/command
但是却执行不了:
$ command
bash: /usr/bin/command: No such file or directory
我的path包括了它:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
我的理解是,执行一个命令时,Shell 会到 $PATH 变量定义的路径去搜索,并运行与命
令同名的可执行文件。哪里出错了呢?难道必须要放在/usr/bin下才行?
G***G
发帖数: 16778
10
来自主题: Programming版 - wpf: 自定义命令command
在wpf中,我有个问题,为什么我们要自定义command?
比如:点击一个button,弹出一个对话框。
我们可以在系统提供的命令中实现,比如:NEW,HELP, CUT, PASTE, COPY
等。
那如果这样的,可以在设定一个button的command为NEW,
但是在New的执行代码里面,不写输入新文本的,而是让这个NEWcommand
进行别的,比如拷贝文字等。
或者说在new command里面进行一些数据处理。
这样,我们进行数据处理,就不需要自定义command了,用系统自带的NEW就可以了。
那为什么我们还要自定义command呢?
n*****n
发帖数: 97
11
呵呵,那你试试看运行"command.com",看看提示是不是
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-1999.
再试试"cmd.exe", 看看提示是不是
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
第一个就是个dos的命令解释器,但是主菜单里的command prompt链的不是它,而是
cmd.exe, 所以command.com最多是因为兼容原因保留下来的。你以通常的方法进的
comand prompt其实就是cmd.exe。
好了,还是回到command promt里输入中文的问题,其实以前的文章已经讨论很详细了,
就是把"Language Setting for the system"的default改成简体中文(随后需要重启,
这不是把locale设成中国)。这个方法至少保证WIN2K自带的输入法可以为command line
工作。如果你的确如上设置还不行,那是有其他问题。
w*******y
发帖数: 60932
12
ACT FAST!!!!
I saw these at office depot for the back to school deals- 4 for $10-This is
a much better deal!!
Walgreens has Selected 3M Command Strips 2 for $3 with the instore Walgreens
coupon (check the ad in store-page 4)-Normally they are $3.50 a pack.
Walgreens:
http://walgreens.shoplocal.com/walgreens/default.aspx?action=br
3M also has a coupon on their website for $.50 off of a purchase of 1. They
allow you to print as many coupons as you would like, but Walgreens max
purchase quantity w... 阅读全帖
w*******y
发帖数: 60932
13
Got this in an email about Origin, did a search and didn't see a previous
post (my apologies in advanced if it is a repost). EA is currently having a
$4.99 sale on digital game / expansion / add-on downloads.
Link:
http://store.origin.com/store/ea/html/pbpage.summersale?
The games are PC digital download only and the prices are valid through 8/9/
11
List of sale items:
Battlefield 2142 Deluxe Edition
Battlefield 2: Complete Collection
Battlefield: Bad Company 2
Battlefield: Bad Company 2: Vietn... 阅读全帖
s*********8
发帖数: 901
14
he stole women's panties
BELLEVILLE, Ontario — The lawyer for a military commander who flew Queen
Elizabeth II and other dignitaries around Canada said Thursday his client
will plead guilty to murder, sexual assaults and dozens of breaking and
entering charges.
Col. Russell Williams was the commander of Canada's largest Air Force base
until he was charged earlier this year with the murder of two women, the
sexual assault of two others and 82 break-ins, during which he stole women's
panties.
Mich... 阅读全帖
z****e
发帖数: 54598
15
来自主题: JobHunting版 - 经常被人问到 Linux command Line
那是py比较慢
groovy加上map reduce可以很快
而且算法上显然是google发明的算法要快
加上分布式的log是每一个node有自己的log
不可能让linux去curl
以后就是查log也要做成分布式系统了
随着nodes数量的增加,依赖人手工去做这些事的可能性越来越低了
内部系统也要建设,而且现在很多公司的build都是ci的mvn build
check in之后,jenkins马上build,log直接显示在web page上
也不需要用linux command,会用浏览器就行了
如果build fail才会发邮件通知,成功的话,就不管了
看到这么多人这么多公司的内部系统还如此落后,我感到痛心疾首啊
只会linux command line的人应该属于cs学得不好的那种
因为jvm和vert.x都有自己的command和shell
熟悉并了解这些command和shell才算是学得不错的那种
S**I
发帖数: 15689
16
你眼花了吧?没任何变化。针对内容编辑的剪切,command+x一直都可以用;针对文件
的剪切,command+x从来都不能用(得用command+c/alt+command+v)。果子认为这是两
类不同的操作。
b**n
发帖数: 289
17
Short version: How to achieve this: "The Lisp variable mac-command-key-is-
meta can be set dynamically to a non-nil value (e.g., in .emacs)"?
Long version:
I just switched to Mac. When using Emacs, however, I still want to use
command key as meta key, because its location on a mac keyboard is close to
"Alt" key on a PC keyboard.
I googled and I found the following :
2.5. How do I set the option key (or command key) as meta key?
Emacs can use either the option key or command key as the meta
x********g
发帖数: 100
18
In most terminals, all commands and results are stacked stacked up, make it
not easy to find things, even if you can change the prompt statement (PS) to
make it distinct from the others. In my opinion, a more efficient user
interface could be like this:
1) The PS is fixed on the first line.
2) You enter a command, and the result shows below the PS.
3) When you are typing another command, the result of the previous command
stays until you type Enter, whereas the screen is cleared and shows the
re
r*****8
发帖数: 2697
19
来自主题: Linux版 - 耗时很长的一个command
simple tutorial:
You start the screen program by typing "screen" at the command prompt.
Screen first creates an initial window and places you inside of it.
To create a new window, and be placed inside of it, type "CTRL-a c". (Hold
down the control key and typing a, then type c for "create.") Now you have
two virutal windows, and you are in the second one you created.
To navigate back to the first window, type "CTRL-a spacebar." Type it again,
and you return to the second window. CTRL-a spacebar ... 阅读全帖
l********s
发帖数: 358
20
来自主题: Programming版 - Questions about C++ Linux Command Line Parsing
有个Linux下的project,我正在写command line parser。project的名字叫exec,那我
运行./exec后进入interactive mode. 我就可以输入如下的命令来运行各个task.
exec0001> read a.in
exec0002> write a.out
exec0003> quit
Parsing command line比较简单,我只要split into token,在调用getopt来parse。
我遇到的问题是我不能想shell一样输入<-(left arrow), ->(righ arrow)在command
line里面左右移动,也不能按Up arrow, Down arrow在之前和之后的command history里查
找,也不能按Tab来实现auto-complete,如果按arrow显示的是^[[A之类的乱码。
我需要添加些什么才能实现这些功能,有什么source code可供我参考吗?或者有什么
现成的library我可以使用? 我也用一个Berkeley的Linux下类似的程序,但它可以实现
这些功能,我进到
j******n
发帖数: 271
21
While a sh script can access its own file name through $0, yet when a
script is run from a dot command, $0 is not the name of the script, but
rather the name of the command or script that runs the dot command. So the
question: how does the script find its own file name when it is run from a
dot command?
Example:
$ cat ./z
echo $0
$ ./z
./z
$ . ./z
bash
ga
发帖数: 6
22
In the dos command window, if you type
title window1
then when you minimize command window, you'll see window1 on
the
minimized window, you'll be able to differentiate different
command window without maxmize them.
Does unix has similar command? I know if you use
xterm -title window1
you'll be able to do it. but If I already open the terminal
and want to add a title to it, how could I do?
Thanks.
e***e
发帖数: 38
23
来自主题: Unix版 - [转载] command to save output
【 以下文字转载自 Linux 讨论区 】
【 原文由 exihe 所发表 】
I remember there is a command that saves all stuff you print and your program
print, i.e. , you execute that command, then the recording begins. You do
whatever you like, then execute the command again to stop recording.
Can anyone tell me what that command is?
w*******y
发帖数: 60932
24
Steam is having a 66% off sale on Supreme Commander 2 and its DLC.
Supreme Commander 2:
http://store.steampowered.com/app/40100/
- $5.10
Supreme Commander 2: Infinite War Battle Pack:
http://store.steampowered.com/app/40135/
- $3.40
(DLC, Requires Supreme commander 2)
w*******y
发帖数: 60932
25
Red Alert 3 - $5 - Link:
http://store.steampowered.com/app/17480/
Command and Conquer 4: Tiberian Twilight - $5
Command and Conquer 3: TIberium Wars - $7.50
Command and Conqquer - Red Alert 3 - Uprising - $5
Command and Conquer 3 - kane's wrath - $5.
l****z
发帖数: 29846
26
By JIM VAN ANGLEN, Associated Press
November 22, 2011

MONTGOMERY, Ala. (AP) — The former top Alabama judge known for refusing to
remove a Ten Commandments monument from the state courthouse said Tuesday
that he's seeking to regain his old job as chief justice of the Alabama
Supreme Court.
Eight years after Roy Moore was removed from the post because of the
monument dispute, he announced that he would run for the position again at a
news conference on the steps of the Alabama Judicial Buildin... 阅读全帖
l****z
发帖数: 29846
27
因为拒绝把圣经十诫从法庭移除而丢掉阿拉巴马州大法官职位的Roy Moore,10年后又
获得共和党大法官提名,几乎肯定可以重新回到那个职位
Roy Moore, Ousted as Judge Over Ten Commandments, Close to Getting Job Back
Thursday, March 15, 2012 10:46 AM
By: Martin Gould
Roy Moore, the former Alabama chief justice who was ousted nearly a decade
ago after he refused to remove the Ten Commandments from his courtroom, is
close to regaining his old job after a decisive primary win.
Moore beat the current chief justice and a former state attorney general in
the Republican v... 阅读全帖
g********2
发帖数: 6571
28
Maddow went a step further, however, asking the Massachusetts senator if she
felt she'd be capable of stepping in to fill in the role of commander in
chief.
"If you were asked to be Secretary Clinton's running mate, do you believe
you could do it? And by that I mean the most important job of being a vice
president is to be ready to be president if, God forbid, something happened
to the commander in chief. I know you don't want the job, but do you believe
you would be capable of stepping into tha... 阅读全帖
M******e
发帖数: 1193
29
http://www.washingtonexaminer.com/nato-commander-agrees-members-should-pay-up/article/2598183
Amid the controversy over Donald Trump's demand that NATO nations meet their
financial obligations before they expect the United States to defend them,
NATO's top commander says he agrees it's important for alliance members to
pay their bills.
In an interview at the Aspen Security Forum, Army Gen. Curtis Scaparrotti
said it's something he regularly discusses with other countries.
"What I tell them typic... 阅读全帖
s*****n
发帖数: 134
30
http://www.latimes.com/news/la-recruiting-scam12-m,0,6248907.st
track=rss&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+lat
imes%2Fmostviewed+%28L.A.+Times+-+Most+Viewed+Stories%29
'Supreme Commander' of phony army unit that recruited Chinese nationals
charged
By Andrew Blankstein
Los Angeles Times Staff Writer
April 12, 2011, 2:18 p.m.
An El Monte man has been arrested and charged for allegedly recruiting
100 Chinese nationals to join a phony Army special forces unit that he
led as... 阅读全帖
a*****c
发帖数: 3525
31
推荐一个网站:
http://www.skeptic.ca/Home_Page.htm
http://www.skeptic.ca/george_carlin_ten_commandments.htm
JR'S Free Thought Pages
No Gods ~ No Masters
George Carlin On The Ten Commandments
I have a problem with the Ten Commandments. Here it is: Why are there ten?
We don't need that many. I think the list of commandments was deliberately
and artificially inflated to get it up to ten. It's clearly a padded list.
Here's how it happened: About five tho
a*****c
发帖数: 3525
32
【 以下文字转载自 Belief 讨论区 】
发信人: agostic (π-packing), 信区: Belief
标 题: George Carlin On The Ten Commandments zt
发信站: BBS 未名空间站 (Sat May 23 03:17:25 2009)
推荐一个网站:
http://www.skeptic.ca/Home_Page.htm
http://www.skeptic.ca/george_carlin_ten_commandments.htm
JR'S Free Thought Pages
No Gods ~ No Masters
George Carlin On The Ten Commandments
I have a problem with the Ten Commandments. Here it is: Why are there ten?
We don't need that many. I think the li
f****y
发帖数: 70
33
来自主题: BuildingWeb版 - activeX call command in ASP
这个AspR.AspR.1应该就是用来call system command的.
我试了一个简单的 oCall.execute("dir>x.txt"), 但是一样还是打印出Error!, 而没有
运行dir这个command. 请问在ASP里调用这样的activex,里面调用system的command,要作
些其他什么配置呢?
在win2000, iis是可以的.到win2003就不行了. 还是说和系统没有关系,而是在win2003里
遗漏了那个配置?
急,求助.

b*********n
发帖数: 1258
34
【 以下文字转载自 Java 讨论区 】
发信人: babyfacenan (黑土), 信区: Java
标 题: java 里可以插入linux command吗?
发信站: BBS 未名空间站 (Mon Jul 7 20:56:16 2008)
project有一部分是别人写的code,
我要把我的和别人的integrate起来
他用的是perl 或者c++, I'm not sure
他的程序是take an input flat file,
then write out an output file,
then, 我只要再读入他的output file 就可以了
他只给了我compile 之后的binary file
可以在linux下run, like this:
compliedFile arg1 arg2
我的程序是java的,不知道java可不可以run linux command?
以前用过perl插入linux command
高手给指点指点吧
谢谢
s*****o
发帖数: 1262
35
来自主题: Linux版 - 请教大牛们: graph command
我用graph command很多,但是一直都只很基础,不知道那里有例子可以让我跟深入的
使用graph command?
简单的graph例子:
graph -T X my.data
哪位能指点一下graph command,挥着给个连接? 多谢!!!
(更先进的gnuplot完全不会用,暂时不想学)
b*********n
发帖数: 1258
36
【 以下文字转载自 Java 讨论区 】
发信人: babyfacenan (黑土), 信区: Java
标 题: java 里可以插入linux command吗?
发信站: BBS 未名空间站 (Mon Jul 7 20:56:16 2008)
project有一部分是别人写的code,
我要把我的和别人的integrate起来
他用的是perl 或者c++, I'm not sure
他的程序是take an input flat file,
then write out an output file,
then, 我只要再读入他的output file 就可以了
他只给了我compile 之后的binary file
可以在linux下run, like this:
compliedFile arg1 arg2
我的程序是java的,不知道java可不可以run linux command?
以前用过perl插入linux command
高手给指点指点吧
谢谢
l********s
发帖数: 358
37
I don't know how to enable the command prompt under linux(in the program
coded by myself) to accept the correct 'arrow' key and 'delete' key inputted
from the keyboard, then I can scroll through the command when I am
inputting the command.
Is there anyone who can give some clues? Thanks a lot.
d****i
发帖数: 4809
38
来自主题: Programming版 - Visual Studo调试中关不掉command window
我用Visual Studio 2005写了一个基于command window程序,但是有时候在debug过程
中,如果忘了按stop button中止debug session而直接重新启动另一个debug session
,有时候那个command window会一直在那儿而无法关掉,最后甚至连任务管理器也杀不
掉那个window,关机也关不了,只能强行把电源关掉,请问大家是否遇到过类似情况,
有没有不用强行切断电源关机更好的办法把command window杀掉?
e******d
发帖数: 310
39
来自主题: Programming版 - A question about command line editor mode
I am using bash in Ubuntu. In order to enable vi mode for the command line,
I put the following line into the .bashrc file.
===========
set -o vi
==========
When the command is very long, the key "v" is pressed and then the "pico"
editor is invoked by default. How can I disable "pico"? I prefer editing
long command line in vi editor.
Thank you.
n****g
发帖数: 14743
40
来自主题: Software版 - 一个Total Commander的问题
应该有设置单击的。
不过 total commander 要花钱买的
不如用 free commander
免费的,而且大概能有 90%以上的 的 total commander 的功能
你常用的都有。
b***s
发帖数: 1
41
来自主题: Unix版 - unix commands question
What command removes the read and write permissions for everyone
except the owner of a file named "myfile"? All other permissions should
remain the same.
What command prints out the amount of space used by every file or
subdirectory in the current directory (except hidden files)?
du -s?
What command would you use to remove all the .o files from the current
directory and all directories at all levels below the current directory?
pretty confused about regular expressions here.
thanks a million
t*******u
发帖数: 10
42
【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: tennispku (风中之雁), 信区: Linux
标 题: 在xemacs的*.el文件里面怎样调用shell command?
发信站: The unknown SPACE (Fri Sep 20 17:31:42 2002) WWW-POST
e.g.
(easy-menu-define
atlas-mode-menu atlas-mode-map
"Menu for `atlas-mode'."
'("ATLAS"
["Compile" shell-command ("c:/atlas/axl/adlc.exe")] <-- it doesn't work
["Run" ]
))
I attached the manual below. how do I specify "output-buffer"?
thanks!
----------------
`shell-command' (buffer: *Hyper Apropos*, mode: Hyper-Apropos)
Interact
s********1
发帖数: 581
43
ps command 为何不显示 emacs process?
如果从console 上启动emacs, 则ps command 会显示emacs process。
但是如果从KDE 的GUI 上启动emacs, 则ps command 不显示emacs process? 为什么?
w*******y
发帖数: 60932
44
Company of Heroes
Company of Heroes: Tales of Valor
Company of Heroes: Opposing Fronts
Metro 2033
Red Faction: Guerrilla
Supreme Commander
Supreme Commander: Forged Alliance
Supreme Commander Gold Edition
Titan Quest
Titan Quest: Immortal Throne
Titan Quest Gold Edition
Warhammer 40,000: Dawn of War - Chaos Rising
Warhammer 40,000: Dawn of War II
Warhammer 40,000: Dawn of War - Dark Crusade
Linky
mbierden
w*******y
发帖数: 60932
45
Command Hook:
http://www.amazon.com/Command-17000-Medium-Hooks/dp/B000EOFVA6/
Used this as a filler for FSSS.
Product Specifications
Brand Name: Command
Model number: 17000
Color: White
Number of Items: 1
Technical Details
The mounting solution that holds firmly and removes cleanly
They leave no surface damage and are reusable, creating an easy and
affordable way to organize and decorate!
Each hook holds up to 3 pounds with 1 hook and 1 strip per pack
e*9
发帖数: 2289
46
Killed ISIS Commander’s Cell Phone Shows Direct Ties To Turkish
Intelligence
Former US Department of State senior adviser David Phillips said, “Turkey’
s role has not been ambiguous — it has overtly supported the ISIL. It has
provided logistical support, money, weapons, transport and healthcare to
wounded warriors.”
http://www.mintpressnews.com/killed-isis-commanders-cell-phone-
l**********1
发帖数: 2980
47
Nevada’s largest newspaper blasted President Barack Obama in a blistering
editorial on Thursday about the Benghazi attacks in which four Americans
died, calling him an “unworthy commander-in-chief.”
Obama, who holds a small lead in Nevada, which has six electoral votes, was
taken to task by the Las Vegas Review-Journal for his handling of the
Benghazi, Libya attacks in an editorial headlined, “Benghazi blunder: Obama
unworthy commander-in-chief.”
“The Obama administration sat by doing nothing fo... 阅读全帖

发帖数: 1
48
还不确定。下面是TRUMP TEAM 发来的 EMAIL.
The first-ever Commander-in-Chief Forum is TONIGHT at 8 PM ET.
Donald Trump and Hillary Clinton will be taking critical questions on
military affairs, national security, and veteran affairs.
We trust you’ll be watching to cheer on Trump, xxx.
And because of your steadfast support, you’ve been selected to represent
9xxxx ahead of tonight’s forum in the Commander-in-Chief Forum Focus Group.
Participate now. >>
3 Hours Left
Get your input in before the forum begins at ... 阅读全帖
b********n
发帖数: 38600
49
【 以下文字转载自 Military 讨论区 】
发信人: beijingren (to thine own self be true), 信区: Military
标 题: Rapper Kendrick Lamar Rips Trump: calling the commander-in-chief a “chump.”
发信站: BBS 未名空间站 (Mon Apr 17 22:38:05 2017, 美东)
The single “The Heart Part 4” sees the Compton, California crooner calling
the commander-in-chief a “chump.”
a*****e
发帖数: 216
50
这两天在研究python command arguments, 有一个python command line script 要执
行多种运算,如 script1.py file1 union file2, script1.py size file3
这里union 是运算,合并两个文件,size 是求file3 的行数.
一个script1.py 可以完成这些运算,而且运算有许多,10来个.
这里的arguments 是positional arguments 吧?但是union, size 又是不一般的
arguments. 那么这种arguments 可以当optional argument 来处理吗?像这个文章里
的"--sum".
http://python.usyiyi.cn/python_278/library/argparse.html
这里还有一个文章:
https://docs.python.org.tw/3/howto/argparse.html
如果union , size 不能当optional argument 来处理,又要怎样处理呢?
这里有关于python... 阅读全帖
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)