a = raw_input 'type x here and see what happens'
if a (INCLUDES) 'x'
print 'y'
那是什麼INCLUDES
命令?有沒有更好的方法呢?if raw_input(includes)x,then print y
我是網絡漫畫Homestuck的粉絲,每個巨魔都有不同的打字方式,稱爲怪癖。我正在用Python編寫一個「Quirk Text」給英文翻譯器(here's兩個字符,帶有不同的怪異I.M. ing)我想讓它們像普通人一樣打字。
在''中做'if'2'(你不能像google搜索一下「python see string include other string」)嗎? –
當然,你是對的,第一個鏈接出現。哎呀,我感到很傻。 –
煩惱不,Google搜索也是技巧) – dcsordas