Step Three: Escape!
来源:互联网 发布:现货知乎 编辑:程序博客网 时间:2024/06/03 20:35
Step Three: Escape!
Don't get too comfortable: you can't use justany symbol in a string, and some results can only be achieved by special characters. The practice of including these characters in a string requires that these strings beescaped, or marked as unique. The backslash character (\
) does this work for us! We just put it directly before the character we want to escape.
The string in the editor is broken: the apostrophe in I'm
makes Python think the single-quote string ends there. Fix it by escaping the '
in I'm
!
# The string below is broken. Fix it using the escape backslash!s="Help! Help! I'm being repressed!"print ss='Help! Help! I\'m being repressed!'print s
- Step Three: Escape!
- Step-by-step learning C + +(chapter three summary____Library Types)
- Step by step create three status workflow in SharePoint 2010
- C++ 高级进阶攻略 Step Three
- The key three-step reading of modern culture
- HDU acm step:Chapter one section three(简单贪心)
- Activity lifecycle:step three(生命周期方法详解)
- escape
- escape
- escape
- Escape
- Escape
- Escape
- Three
- three
- three
- three
- Step
- Maven和Tycho
- 网络团购业继续洗牌
- 改变你一生的30个关键习惯
- [leetcode] Subsets II
- android模拟器调整尺寸和内存大小
- Step Three: Escape!
- QString C程序员的注意事项
- Android ViewFlipper的使用 实现页面滑动
- 帮您快速入门 TI 的 Codec Engine
- linux菜鸟在ubuntu下编译了arm的c程序
- Android短信拦截
- PostgreSQL数据库、表空间、角色及用户
- 利用ffmpeg添加水印
- DB2 SQLCODE: -443, SQLSTATE: 38553