我与蟒蛇plugins.I工作有我场变量= “T_0”,“调查”我想只有调查存储到另一个variable.Which函数的使用来获得survey from “t_0”。“survey”?Python的查询(字符串)
我试图a=field.split(".")
当我尝试打印一个,它给
<PyQt4.QtCore.QStringList object at 0x01247228>
是否有任何删除功能或找到的位置“”从字符串..?
,如果我尝试lstrip()或ljust(),它提供了错误说
AttributeError: 'QString' object has no attribute 'lstrip'..
可能只是尝试= STR(场)B = a.split(”。 “) – JackalopeZero 2012-02-15 10:01:08
thanx:)它的工作很好.... – poonam 2012-02-15 10:09:02