Python の宿題ここで答えます Part 2at TECHPython の宿題ここで答えます 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.'