首頁  >  文章  >  後端開發  >  [x for x in range(0,20) if x%3 ==0] 用PHP怎么简单地写出来 。。。

[x for x in range(0,20) if x%3 ==0] 用PHP怎么简单地写出来 。。。

WBOY
WBOY原創
2016-06-06 20:45:311426瀏覽

<code>[x for x in range(0,20) if x%3 == 0]
</code>

用PHP怎么简单地写出来 。。。

回复内容:

<code>[x for x in range(0,20) if x%3 == 0]
</code>

用PHP怎么简单地写出来 。。。

<code><?PHP print_r(range(0,20,3));
?>
</code>
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn