我與蟒蛇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