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()
相关文章推荐
- SmartFoxServer 2x的pythonclient
- python下smtp发送邮件
- 通过SSH远程使用ipython notebook
- <LeetCode><Easy> 112 Path Sum --二叉树深度优先遍历
- python核心编程 练习7-9
- <LeetCode><Easy> 118 Pascal's Triangle
- Python游戏服务器开发日记(八)整体方案改变了……
- <LeetCode><Easy> 118 Pascal's Triangle II
- 用python读写yaml/json文件
- python核心编程 练习题7.8
- 详解使用Python处理文件目录的相关方法
- 详解在Python程序中自定义异常的方法
- Python之BeautifulSoup模块的简单使用
- Python 2.7 有用的一些链接
- 安装mysql-connector-python
- LeetCode----Single NumberIII
- PYTHON and R pandas包
- Python图表绘制:matplotlib绘图库入门
- Python类继承的高级特性
- Php与python简单比较