- @client.getAvatars(@accountName).each do |avatar|
=avatar['deleted']
輸出: 假 假 真
2)
- @client.getAvatars(@accountName).each do |avatar|
- if(avatar['deleted'] == 'false')
=avatar['deleted']
空輸出
3)
- @client.getAvatars(@accountName).each do |avatar|
- if(avatar['deleted'] != 'false')
=avatar['deleted']
輸出: 假 假 真正
我不明白爲什麼這麼奇怪,你可以把它解釋一下嗎?
PS:我的工作變型
- @client.getAvatars(@accountName).each do |avatar|
- if(!avatar['deleted'])
=avatar['deleted']
輸出: 假 假
我不認爲任何人有任何關於**你在這個問題上問什麼**的想法。 –
請給你的問題一個更好的標題。 –