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