我是一名真正的初學者,學習如何使用Zed Shaw的「Python學習困難方式」來使用Python。到目前爲止,只要我以完全相同的方式輸入,我沒有任何代碼給出錯誤,但在練習46中,我無法設置我的skelton項目。在這本書中,它說,鍵入:學習Python難題練習46:mkdir bin NAME測試文檔
$ mkdir -p projects<br/>
$ cd projects/<br/>
$ mkdir skeleton<br/>
$ cd skeleton<br/>
$ mkdir bin NAME tests docs<br/>
I have already checked this Learn Python the Hard Way: Exercise 46 but I could not do the last line "mkdir bin NAME tests docs". It (I am using Windows PowerShell) gives me an error saying:
"mkdir : A positional parameter cannot be found that accepts argument 'Name'.<br/>
At line:1 char:6<br/>
+ mkdir <<<< bin NAME tests docs<br/>
+ CategoryInfo : InvalidArgument: (:) [mkdir], ParameterBindingException<br/>
+ FullyQualifiedErrorID : PositionalParamaterNotFound,mkdir<br/>
Could anybody please tell me what is going on and how I can fix this? I am sorry this is really a basic question but is "$ mkdir bin NAME tests docs" trying to make multiple directories named "bin", "NAME", "tests", and "docs"?
你輸入 「$的mkdir倉位名稱測試文檔」 或「MKDIR倉位名稱測試文檔「? – Jerome 2012-07-13 20:06:55
@Jerome:'$'是一個常用的命令提示符號,最後我檢查了一下,所以後者更可能。特別是後來的問題表明該行嘗試的是「mkdir bin NAME tests docs」。 – JAB 2012-07-13 20:09:08
感謝您的快速響應!不,我明白我不應該輸入$(> for Windows)。 – owl 2012-07-13 20:11:46