Python reading whitespace-separated file lines as separate lines

后端 未结 6 796
野性不改
野性不改 2021-01-25 14:18

This is on Windows Server 2008 R2. I have a file of inputs, one input per line. Some of the inputs have spaces in them. I\'m trying to use the below simple code, but it separate

6条回答
  •  旧时难觅i
    2021-01-25 14:48

    If you run:

    mkdir hello world

    in Linux, you will create two directories, one named "hello", and one named "world".

    You need to run

    mkdir "hello world"

    in order to create a directory name that has a space in it.

提交回复
热议问题