Python の宿題ここで答えます Part 2at TECH
Python の宿題ここで答えます Part 2 - 暇つぶし2ch55:デフォルトの名無しさん
09/12/24 11:56:36
>>53
import sys
import os
import os.path

s = sys.stdin.readline().rstrip('\n')
if os.path.exists(s):
  if os.path.isdir(s):
    for x in os.listdir(s):
      print os.path.abspath(x)
  else:
    print os.path.abspath(s)
else:
  print 'Not exists.'


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch