亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

[Tutor] how to change the current working di

系統(tǒng) 2141 0

[Tutor] how to change the current working directory path in ipython.

[Tutor] how to change the current working directory path in ipython.

Joel Goldstick joel.goldstick at gmail.com
Wed Feb 8 15:33:01 CET 2012

?


      On Wed, Feb 8, 2012 at 9:24 AM, Debashish Saha <
      
        silideba at gmail.com
      
      > wrote:
>
      
         how to change ?the current working directory path in ipython.

      
      >
      
      
      >
      
         my current directory path is

      
      >
      
         ? ? ? ? ? ? ? ? ? ? ? pwd

      
      >
      
         ? ? ? ? ? ? ? Out[2]: u'C:\\Users\\as'

      
      >
      
      
      >
      
         now if i want to take the path to a subfolder of above

      
      >
      
         'C:\\Users\\as', what do i have to do?

      
      >
      
         _______________________________________________

      
      >
      
         Tutor maillist ?- ?
        
          Tutor at python.org
        
      
      >
      
         To unsubscribe or change subscription options:

      
      >
      
        
          http://mail.python.org/mailman/listinfo/tutor
        
      
      

Try looking here:

      
        http://docs.python.org/tutorial/stdlib.html#operating-system-interface
      
      

There is a module in python called os

Here is an example from the documentation

>>>
      
         import os

      
      >>>
      
         os.getcwd()      # Return the current working directory

      
      'C:\\Python26'
>>>
      
         os.chdir('/server/accesslogs')   # Change current working directory

      
      >>>
      
         os.system('mkdir today')   # Run the command mkdir in the system shell

      
      0

-- 
Joel Goldstick
    

[Tutor] how to change the current working directory path in ipython.


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 综合久久综合久久 | 日本三级11k影院在线 | 亚洲专区一路线二 | 4虎 影视 免费 | 久久蝌蚪 | 手机看片亚洲 | 日日干干| 国产在线视频凹凸分类 | 欧美日本一本线在线观看 | 一级欧美一级日韩毛片99 | 国产精品麻豆a啊在线观看 国产精品麻豆高清在线观看 | 九九99久久精品在免费线bt | 欧洲成人免费视频 | 在线欧美 | 欧美色99| 99伊人| 日韩欧美一区二区在线 | 国产精品久久久久国产精品 | 午夜体验区 | 中文字幕永久视频 | 国产欧美日韩中文字幕 | 中文字幕亚洲综合精品一区 | 久草在线视频精品 | 91在线精品老司机免费播放 | 一区二区三区不卡免费视频97 | 嫩草影院麻豆久久视频 | 中国jizz日本 | 天天干天天舔天天操 | 九九热亚洲精品综合视频 | 欧美一区二区三区在观看 | 快播视频在线 | 久久国产精品男女热播 | 香蕉视频在线观看黄 | 91视频入口| 一级毛片免费在线播放 | 国产福利免费视频 | 欧美成人免费一级人片 | 成人日韩在线 | 99热精品在线观看 | 日韩区在线 | 婷婷激情亚洲 |