最贊回答 / 杰5245212
<table border="1"><tr> <th>Name</th> <th>Score</th> </tr><tr> <td>Adam</td> <td>95</td> </tr><tr> <td>Lisa</td> <td>85</td> </tr><tr> &...
2019-07-09
最贊回答 / 悠著飛
輸出的是字符串 你可以強制類型轉換print [int(x+y+x) for x in '123456789' for y in '0123456789']
2019-07-09
最新回答 / SheepShake
你這個是死循環啊,怎么出結果,continue的意思是滿足if條件的話就跳過continue下方的語句,重新開始循環,應該把x =?x + 1?放到continue前吧<...code...>
2019-07-08
最贊回答 / 慕田峪9203819
列表表達式:????????[表達式 for 變量 in 列表 if 條件]你的寫法不符合語法,for前少表達式,你可以這么寫def toUppers(L):? ? return [x.upper() for x in L if isinstance(x, str)]print (toUppers(['Hello', 'world', 101]))
2019-07-08