def setting_number_reading(self):
self.setting_number=[]
with open('./setting.csv', encoding="shift-jis") as f:
reader = csv.reader(f)
header = next(reader) # ヘッダーを読み飛ばしたい時
for row in reader: # 1行づつ取得できる
self.setting_number.append(row[1])
if self.setting_number[0] =="":
self.setting_number[0] = "0"
if self.setting_number[1] =="":
self.setting_number[1] = "5"
#print(self.setting_number)
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme