一、程序員計算器
number = int(input("請輸入一個數字:"))
print("二進制",bin(number))
print("八進制",oct(number))
print("十六進制",hex(number))
二、給電影打分
score = int(input("請給電影《肖申克的救贖》打分(只能輸入數字1-9):"))
if(score<1 or score>9):print("分數不符合規范!")
else:print("您為電影《肖申克的救贖》評分是",'*'*score)