2018-05-05から1日間の記事一覧
環境 ・windows 10 ・python 3.6 今回は111というutf-8のテキストファイル内のAAAという文字列をBBBという文字列に置換する。 #coding:utf-8with open(r"C:\Users\I\Desktop\111.txt","r",encoding="utf-8") as file: filedata=file.read()#with openでファ…
環境 ・windows 10 ・python 3.6 今回は111というutf-8のテキストファイル内のAAAという文字列をBBBという文字列に置換する。 #coding:utf-8with open(r"C:\Users\I\Desktop\111.txt","r",encoding="utf-8") as file: filedata=file.read()#with openでファ…