How to run/debug a script file its name has characters such as space, (, etc.

jfong at ms4.hinet.net jfong at ms4.hinet.net
Fri Oct 12 06:14:47 EDT 2018


Chris Angelico於 2018年10月12日星期五 UTC+8下午4時39分37秒寫道:
> On Fri, Oct 12, 2018 at 6:26 PM <jfong at ms4.hinet.net> wrote:
> >
> > I saw a directory where all its filenames are something like this:
> > ...
> > 1a PSG (Entry and PopUp).py
> > 1b PSG (Format).py
> > 1c PSG (persistent form and bind key).py
> > ...
> >
> > Just wondering how these file can run and debugged under Windows?
> >
> 
> Put the file name inside double quotes. You can probably do this by
> tab-completing the name - type 1c and then hit the tab key - your
> shell should fill out the rest of the name with whatever quoting is
> necessary.
> 
> ChrisA

After using Windows so many years, I don't know this trick the double quotes and tab can do in the shell. It really embarrass me:-(  Thanks you, Chris.

--Jach



More information about the Python-list mailing list