python shell是什么 什么是python shell


python shell是什么 什么是python shell

文章插圖
1、python shell是Python的命令行 。
【python shell是什么 什么是python shell】2、shell中最常用的是ls命令,python對應的寫法是:os.listdir(dirname),這個函數返回字符串列表,里面是所有的文件名,不過不包含”.”和”..” 。
3、如果要遍歷整個目錄的話就會比較復雜一點,在解釋器里試一下: >>... 。

    推薦閱讀