您的位置:首页 > 编程语言 > Python开发

python模块示例

2015-10-16 19:53 441 查看
python示例,在Jython中开发
'''
Created on 2015-10-16

'''

class Pytest(object):

def __init__(self):
'''''public Goo()'''

def stringTest(self):
aa = 'shengzhen\\\",\\\"shengzhen'
bb = aa.split(r"#$%")
cc = ""
temp = '\\",\\"'
for dd in bb:
cc = cc + dd
cc = cc + temp

cc = cc[0:len(cc)-len(temp)]
return cc

if __name__ =='__main__':
pytest = Pytest()
print pytest.stringTest()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: