看板 Eng-Class 關於我們 聯絡資訊
“Since findall() returns a list, we simply check if the number of elements in our returned list is more than zero to print only lines where we found at least one substring that looks like an email address" 在看一本程式的原文書時看到一段句子 雖然知道意思 但是句子中的"to print" 我不知道為什麼會放在這個位置 可以麻煩高手幫我解惑一下嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.252.4.221 ※ 文章網址: https://www.ptt.cc/bbs/Eng-Class/M.1472139131.A.434.html
poolongkong: 不負責任猜測,"more than zero"當成形容詞子句來 08/25 23:45
poolongkong: 看 08/25 23:45
poolongkong: 一起等高手專業詳解 Orz 08/25 23:45
gentianpan: 這個 findall() 的函式是用來列印只含有email位址字 08/25 23:54
gentianpan: 串的行列。難道這一章節沒有實際 output somewhere? 08/25 23:54
gentianpan: 1. number of elements > 0. 2 and number of eleme 08/26 02:02
gentianpan: nts to print ....大概見to print 後面述語太長了。 08/26 02:02
gentianpan: 先接短的再接長的。 08/26 02:02
vincentman: to意義等同in order to或so as to 08/26 08:52
josh227: 謝謝上面各位的幫忙 後來隔幾天再看 的確如樓上V大所說的 08/29 22:23
josh227: in order to 或 so as to的感覺 非常謝謝大家的幫忙^^ 08/29 22:24