//那个不好意思,前面没有'\',0x3a,072,- - 我又C了..
class TestData
{
public static void main(String[] args)
{
System.out.println(0x3A);//58十六进制
System.out.println(072);//58八进制
System.out.println("abc"+"\r"+"d");//dbc
System.out.println("abc"+"\n"+"d");//abc
//d
}
}
//在C中
#include<stdio.h>
int main()
{
printf("%d %d %d\n",58,'\x3A','\072');//58 58 58
return 0;
} |