python里的r
导读:python里的r?例如:test = """hello,\nworld""" print "this is test1: %s" %test print "this is test2: %r" %test输出: this is test1...
python里的r?
例如:
test = """hello,\nworld""" print "this is test1: %s" %test print "this is test2: %r" %test输出: this is test1: hello, world this is test2: 'hello,\nworld'由此可见,在python中格式化字符%r,表示打印的是对象,什么都打印声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: python里的r
本文地址: https://pptw.com/jishu/59423.html
