コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
24135 ビュー

trainers = []

for sesi in reg.event_id.session_ids :

    iden = sesi.trainer_id.identity_no

    if iden not in trainers :

          trainers.append(iden)

                        

trainer = trainers


str(trainer.encode('utf-8', 'ignore')) +'","'+str(assesor.encode('utf-8', 'ignore')) +'","' +\

アバター
破棄
最善の回答

Hi Chaanto,

The trainers list is not string, Check the trainer type, e.g type(trainer). and  pass the return.


アバター
破棄
最善の回答

Hello Chaanto,

Obviously list has not attribute like encode so its giving error..

You need to unicode each element of the list individually.

\https://stackoverflow.com/questions/5054333/attributeerror-list-object-has-no-attribute-encode


Thanks!

アバター
破棄
関連投稿 返信 ビュー 活動
0
4月 24
1711
4
11月 23
5703
0
10月 23
1445
0
12月 22
2394
2
12月 23
19001