一品网
  • 首页

python 单引号与双引号的转义


import simplejson

a = """{"a":"\\""}"""
b = """{"a":"\\'"}"""
print simplejson.loads(a)
print simplejson.loads(b)

输出:
{'a': '"'}
simplejson.errors.JSONDecodeError: Invalid \X escape sequence '\\': line 1 column 7 (char 6)
code

相关


网络编程中URL的encode和decode

Xcode Build Settings

VSCODE远程调试中如何开启X11转发实现APP屏幕转发

【LeetCode每日一题】员工的重要性

【LeetCode每日一题】整数反转

[转]vscodesvn安装和使用

finished with exit code -1073740791 (0xC0000409)解决方案

什么是 SAP Spartacus UI 的 code deprecation

关于vsCode创建项目

Codevs2018 反病毒软件

vscode设置自动换行

【LeetCode】—— 翻转二叉树

标签

一品网 冀ICP备14022925号-6