正在加载图片...
⑧安薇理工大学 ANHUI UNIVERSITY OFSCIENCE TECHNOLOG >要在字符串中包含双引号或反斜线,则在其前加一个反斜 线,反斜线还可以取消变量替换,如: Sres="A quote I"and a backslash II Result= 14; print(" The value of$ result is$ result. n")的结果为: The value of result is 14. >可用nn(8进制或n(16进制)来表示ASc字符,如 Result=1377 this is the character 255, or OF Result ="Ixff this is also 255 1616 ➢ 要在字符串中包含双引号或反斜线,则在其前加一个反斜 线,反斜线还可以取消变量替换,如: $res = "A quote \" and A backslash \\"; $result = 14; print ("The value of \$result is $result.\n")的结果为: The value of $result is 14. ➢ 可用\nnn(8进制)或\xnn(16进制)来表示ASCII字符,如: $result = "\377"; # this is the character 255,or EOF $result = "\xff"; # this is also 255
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有