Demo entry 6668101

format

   

Submitted by anonymous on Nov 30, 2017 at 18:17
Language: Python. Code size: 185 Bytes.

import re

def format(add):

	f1=open(add)
	f2=open(add,"r+")

	for s in f1.readlines():						#"," durch "." ersetzt
		f2.write(s.replace(',','.'))

	f1.close()
	f2.close()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).