Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #4546

Re: [Python-de] Wie Key-Value Sets speichern?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Achim Domma <domma@procoders.net>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Wie Key-Value Sets speichern?
Date Wed, 28 Sep 2016 01:03:01 +0200
Lines 37
Message-ID <mailman.48.1475017385.2302.python-de@python.org> (permalink)
References <5451e46e-5eca-e89d-61ef-2030e6aee36e@xgm.de> <42e7d3e5-3dd7-f835-8d49-bfff223e47b4@procoders.net>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de Y2pakos8pF/4D8JpLlPWJwcOdhQ4pP5e6Kx7itWFvZIw==
Return-Path <domma@procoders.net>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
In-Reply-To <5451e46e-5eca-e89d-61ef-2030e6aee36e@xgm.de>
X-PPP-Message-ID <20160927230302.9884.70813@webhosting05.marketing-thom.de>
X-PPP-Vhost procoders.net
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <42e7d3e5-3dd7-f835-8d49-bfff223e47b4@procoders.net>
X-Mailman-Original-References <5451e46e-5eca-e89d-61ef-2030e6aee36e@xgm.de>
Xref csiph.com de.comp.lang.python:4546

Show key headers only | View raw


Json!?

On Wednesday, 28 September, 2016 12:09 AM, Florian Lindner wrote:
> Hallo,
> 
> ich schreibe Werte aus einer C++ Anwendung, gespeichert als std::map<string, T> in eine Datei.
> 
> Dabei will ich folgendes:
> 
> - Die Datei soll menschen-lesbar sein
> 
> - Es sollen mehrere Sets von Key-Value Paaren gespeichert werden, z.B. eins pro Run.
> 
> - Die Paar varieren pro Set. CSV scheidet deshalb aus, da es es für die gesamte Datei das gleiche Datenformat annimmt
> (wenn man die erste Zeile als Header, für die Keys verwendet)
> 
> - Eingelesen werden soll es mit Python um dann z.B. mit numpy weiterverarbeitet werden.
> 
> Wie würde nun ein geeignetes Datenformat ausschauen, was ich dann auch problemlos mit Python einlesen kann?
> 
> CSV mit Trennlinie?
> 
> A;B;C
> AValue;BValue;CValue
> =====
> A;D;Y
> AVal,DVal,YVal
> =====
> ...
> 
> 
> Viele Grüße,
> Florian
> _______________________________________________
> python-de maillist  -  python-de@python.org
> https://mail.python.org/mailman/listinfo/python-de
> 

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] Wie Key-Value Sets speichern? Achim Domma <domma@procoders.net> - 2016-09-28 01:03 +0200

csiph-web