# -*- coding: utf-8 -*-
#====================
#File: abop.py
#Author: Wendy
#Date: 2013-12-03
#====================
#eclipse pydev, python3.3
#三引号可以自由的使用双引号("")和单引号('')
s = ''''' I am a girl and like heels.
Hello, "python" sister. '''
#转义序列"\"
st = '''''Hello, girls, l like (\'''). '''
#字符串放在一起自动连接
sa = 'Girls are ''the best. '
#r表示自然字符串, 不会进行转义(\n)
sr = r"nature is good. \n {0}"
#"\"表示连接字符串
sc = 'Oh, the lines are too \
large'
#括号, 方括号, 大括号, 可以限定范围, 不用使用转义
print("the braces can do {thing}.".
format(thing="lady"))
print(s)
print(st)
print(sa)
print(sr)
print(sc)
the braces can do lady.
I am a girl and like heels.
Hello, "python" sister.
Hello, girls, l like (''').
Girls are the best.
nature is good. \n {0}
Oh, the lines are too large
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有