amiga-news DEUTSCHE VERSION
.
Links| Forums| Comments| Report news
.
Chat| Polls| Newsticker| Archive
.

amiga-news.de Forum > Search [ - Search - New posts - Register - Login - ]

-1- Search results: 1 hits (30 per page)
olivia777   User

2018-07-20, 23:28 h

[ - Direct link - ]
topic: [Python] Ein Dictionary aus bestehenden Dateien erstellen
Board: Programmierung

Hallo zusammen,ich versuche gerade ein inverted index in form einer dictionary zu basteln. Dazu möchte ich aus einem Directory die .txt-Dateien nutzen.Ich bin noch ziemlicher Anfänger was Python angeht und hab es folgendermaßen probiert:import fileinput,fobj = open("C:UsersMEINNAMEDownloadsfiles", 'r'),fobj.filename().Leider gibt mir die Konsole bereits hier ein --> AttributeError: 'file' object has no attribute 'filename'.Wie kann ich das schaffen?
 
 
-1- Search results: 1 hits (30 per page)

Search terms
keywords      username
Search options
Only search these boards
   match whole words only
show only titles
show all results

.
Masthead | Privacy policy | Netiquette | Advertising | Contact
Copyright © 1998-2024 by amiga-news.de - all rights reserved.
.