0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

テキスト読み込み

Posted at
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)
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?