Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: "." to "," when writing to .txt
Post: RE: "." to "," when writing to .txt

**evil** I have been trying that.... only with a "," in between format and replace.... (over 14 hours and now it works....) print >> d, dt_string,'{:.1f}*C' .format(t), .replace('.', ',') **...
Lullaby General Coding Help 8 2,969 Jun-12-2021, 10:59 PM
    Thread: "." to "," when writing to .txt
Post: RE: "." to "," when writing to .txt

Don't know witch one to give **biggrin** import time from datetime import datetime DS18B20="/sys/bus/w1/devices/28-01204febab44/w1_slave" while True: now = datetime.now() dt_string = now.s...
Lullaby General Coding Help 8 2,969 Jun-12-2021, 10:47 PM
    Thread: "." to "," when writing to .txt
Post: RE: "." to "," when writing to .txt

(Jun-12-2021, 09:18 PM)Gribouillis Wrote: What's unclear in my answer? Doesn't it show how to replace "." with "," ? Yes it is clear and should be really easy (it works fine without my own code) Onl...
Lullaby General Coding Help 8 2,969 Jun-12-2021, 09:45 PM
    Thread: "." to "," when writing to .txt
Post: RE: "." to "," when writing to .txt

I'm out of options and exhausted by now.... Can someone give me the answer..... After this I need to change to Python 3 **blush** Never thought about something like that, just wanne learn python so ...
Lullaby General Coding Help 8 2,969 Jun-12-2021, 08:22 PM
    Thread: "." to "," when writing to .txt
Post: "." to "," when writing to .txt

import time from datetime import datetime DS18B20="/sys/bus/w1/devices/28-01204febab44/w1_slave" while True: now = datetime.now() dt_string = now.strftime('%d/%m/%Y %H:%M:%S ') f ...
Lullaby General Coding Help 8 2,969 Jun-11-2021, 11:34 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020