输入一个十进制整数,分别输出其二进制、八进制、十六进制字符串
a=int(input("请输入一个十进制整数:"))nume=astr1=''str2=''str3=''while not a==0:b=a // 2c=a%2str1=str(c)+str1a=ba=numewhile not a==0:b=a // 8c=a%8str2=str(c)+str2a=ba=numewhile not a == 0:b = a // 16c = a % 16str3 = str(c) + str3a = bprint("{}该整数的二进制为{},八进制为{}。十六进制为{}".format(nume,str1,str2,str3))