Can't find any info on Python's read() method (python 2.7)

前端 未结 2 790
没有蜡笔的小新
没有蜡笔的小新 2021-01-25 16:45

I\'m trying to learn Python by going through Zed Shaw\'s \"Learn Python the hard way\" and I\'m stuck at what may seem as a very trivial thing. I\'m unable to find any info on t

2条回答
  •  鱼传尺愫
    2021-01-25 17:21

    Note the formatting in Exercise 15:

    1. Run pydoc file and scroll down until you see the read() command (method/function)...

    This is not accidental; the command you need is right there:

    python -m pydoc file
                  # ^ note argument
    

提交回复
热议问题