2 | hej | hej | hej |
3 >>> print 'hej'.center(2)
4 hej
5 >>> print 'hej'.center(20, '+')
6 ++++++++hej+++++++++
上一篇:Recipe 1.6. Combining Strings(Python Cookbook)
下一篇:Recipe 1.3. Testing Whether an Object Is String-like(Python Cookbook)
FastAPI 构建高效的 Python Web
python cookbook这本书倒是比较奇特,与其它书按部就班的来讲解一门语言不一样,而是用无数个小程序来给人展示python的强大,书上各
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M