Describes how type opens files in Python

  • 2020-08-22 22:15:17
  • OfStack

These days I have been reading data Analysis using Python, and I have encountered a small problem in chapter 6, data loading, storage, and file format.

Access files in Linux are used with:! cat ch06 / ex1 csv

Use:! On the Windows command line. type ch06 \ ex1 csv

It should be noted that:

1. The difference between Windows and Linux is that win USES "\" to add subdirectories, while Linux USES "/" to add subdirectories;

2.win can also use the absolute path to access, in the directory where the Ann figure operation mode to copy, at this time need to add quotation marks for use:! type C: \ Users \ Burette \ pydata book - master \ ch06 \ ex1 csv"


Related articles: