왜 다른 문자열 길이가 생깁니 까?왜 문자열 길이가 다릅니 까?
XivelyID=2
XivelyCV=3
PUTjsonBODY='{ "version": "1.0.0", \r\n\
"datastreams" : [ { \r\n\
"id"" : "%s", \r\n\
"current_value"" : "%s" } ]\r\n\
}\r\n'
print PUTjsonBODY %(XivelyID,XivelyCV)
print len(PUTjsonBODY)
print
XivelyID=8
XivelyCV=9
PUTjsonBODY='{ "version": "1.0.0", \r\n\
"datastreams" : [ { \r\n\
"id"" : "%s", \r\n\
"current_value"" : "%s" } ]\r\n\
}\r\n'%(XivelyID,XivelyCV)
print PUTjsonBODY
print len(PUTjsonBODY)
1 인쇄 렌 (PUTjsonBODY) 116
2 인쇄 렌 (PUTjsonBODY은) 114
이유
입니다 : 온라인 파이썬 컴파일러에서이 코드를 입력하려고?p.s. 코드를 입력하려고 여기 온라인 실행
http://www.compileonline.com/execute_python_online.php
경우 위의 p.s.2 과 하단 텍스트 결과 이상 totaly 정확한있는 것은 바닥 다음에 allways 2 이상이다! 왜?