標籤:

如何在知乎上舉一反三地提問

代碼:

# -*- coding: utf-8 -*-nattr = [驚人,平淡]nsteps = [開頭,承接,轉折,結局]nstart = 有哪些nend = 的故事?nspliter = ,nndef question(cur,left):n if left:n sp = spliter if len(left) > 1 else n for a in attr:n question(cur+ left[0] + a + sp, left[1:])n else:n print cur + endnnquestion(start,steps)n

效果:

Interesting

推薦閱讀:

TAG:知乎 |