Python瓜分字符串

Python分割字符串我写的python是要跟c#.net交互的,用的是IronPython例如有个字符串strExp a 1 and b

Python分割字符串
我写的python是要跟c#.net交互的,用的是IronPython

例如有个字符串strExp = "a = 1 and b = 2 and c = 3";
我想根据and 将字符串分割,放到数组中

在c#中可以通过 strExp.Split(new char[]{'a','n','d'});
我在py中这么写 strExp.Split(['a','n','d']); 通不过

请问在py中,如何根据and 分割strExp这个字符串?

[最优解释]
strExp.split('and')
[其他解释]

引用:
strExp.split('and')


这个当然是对的....
Python没有什么char,都是字符串


>>> strExp = "a = 1 and b = 2 and c = 3"
>>> strExp
'a = 1 and b = 2 and c = 3'
>>> strExp.split('and')
['a = 1 ', ' b = 2 ', ' c = 3']
>>> 

[其他解释]
3楼说的是对的,你自己也可以试一下 呵呵~ 顶你一下
[其他解释]
引用:
引用:

strExp.split('and')


这个当然是对的....
Python没有什么char,都是字符串


Python code

>>> strExp = "a = 1 and b = 2 and c = 3"
>>> strExp
'a = 1 and b = 2 and c = 3'
>>> strExp.split(……


正解啊
[其他解释]
 大哥 
and 是string  不是char 
[其他解释]
那就诡异了   我会报错呢

不过谢谢各位了,我用正则解决了
[其他解释]
非常感谢,我成功的把函数名字从字符串里面提取出来了
[其他解释]
楼主怎么就不会吧自己的答案贴出来分享一下呢??
这样你的帖子才完整嘛