#! /usr/bin/python # -*- coding=UTF-8 -*- print "hello, \ world!" print \ ''' test ''' print 'hello,\nworld!' print r'hello,\nworld!' #print r'c:\file\' #关于r使用原始字符,最后一个字符为\,则报错,系统无法判断 print r'c:\file' '\\' #此处既可以解决
关于python的转义字符
猜你喜欢
转载自blog.csdn.net/fristars2/article/details/75578503
今日推荐
周排行