博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年5月20日

摘要: #!/usr/bin/python# -*- coding: utf-8 -*-# Filename : helloworld.pyprint u'使用单引号定义字符串'print u"使用双引号定义字符串"print u'''使用三引号创建换行第二行第三行'''print u'使用转义符\''print u'使用行末\来连接太长的一行字符串\过长部分字符串'print ur'使用r创建自然字符串... 阅读全文

posted @ 2010-05-20 17:54 懒人ABC 阅读(537) 评论(0) 推荐(1) 编辑