博客代碼高亮測試

<pre name="code" class="python">
#!/usr/bin/env python
#--*-- coding:utf-8 --*--
lucky_num = 19
input_num = 0
n = 0
while lucky_num!=input_num and n < 3:
    input_num = int(input("Input the guess num:"))
    #if input_num == lucky_num:
        #print("Bingo!")
        #break
    if input_num > lucky_num:
        print("The real num is smaller.")
    elif input_num < lucky_num:
        print("The real num is bigger.")
    n+=1    
print("Bingo!")

</pre>
相關文章
相關標籤/搜索