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

[Tutor] how to change the current working di

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

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

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

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 一区一区三区产品乱码 | 国产亚洲久久 | 精品免费tv久久久久久久 | 中文字幕一区二区三区四区 | 国产精品色 | 色偷偷久久一区二区三区 | 九月激情网 | 久久国产大片 | 国产成人高清精品免费观看 | 欧美乱大交xxxxx在线观看 | 激情九九| 色中色资源站 | 久久ri精品高清一区二区三区 | 91九色精品国产免费 | 亚洲精品久久久午夜伊人 | 精品午夜寂寞影院在线观看 | 久久99蜜桃精品久久久久小说 | 亚洲资源站资源网在线 | jazz欧美人免费xxxxxx | 日韩不卡中文字幕 | 国产爆操 | 美国黄色大片 | 伊人精品国产 | 久久香蕉国产线看观看亚洲卡 | 亚洲国产精品日韩在线观看 | 最新仑乱免费视频 | 夜夜摸视频网 | 在线亚洲成人 | 国产高清亚洲 | 高清在线精品一区二区 | 狠狠色婷婷丁香综合久久韩国 | 国产亚洲精品久久午夜 | 99久久www免费人成精品 | 老司机精品在线播放 | 久操美女 | 奇米影视亚洲色图 | 日韩天天摸天天澡天天爽视频 | 日本在线黄色 | 久草在线资源 | 亚洲精品影院一区二区 | 日韩欧美中文字幕在线视频 |