# /usr/bin/python3 
# -*- coding: utf-8 -*-

# Date: 2016.08.07
# Filename: 21.py
# Author: Timilong

# 获取用户的输入
num = int(input("请输入一个十进制数: "))

# 转换成2进制
print("二进制数为: ", bin(num))

# 转换成8进制
print("八进制数为: ", oct(num))

# 转换成16进制
print("十六进制数为: ", hex(num))
