pythonで組み込みのmap()関数を作成しようとしています。 def mapper(func, *sequences):
if len(sequences) > 1:
while True:
list.append(func(sequences[0][0],sequences[0][0],))
return list
return lis
私は確定的なファイルを読むための関数を書いています。この場合、ユーザーは読みたいファイルを選択することができます。 import os
import pprint as p
path = "C:\Users\cgr02\Documents\Py"
listname = {}
for root, dirs, files in os.walk(path):
for filename in