Tingyu’s Learning Memo

Navigation

Skip to content
  • Home
  • About
  • Blog
    • 寫過的電影
    • 韓國交換
    • 喜歡的書
  • Contact

Tag Archives: random

Post navigation

Python基礎程式-猜數字

Posted on August 12, 2021 by Tingyu Cho

透過Random套件,可以寫成一個簡單的猜數字遊戲

import random
a = random.randint(0,10)
b = int(input(“Player: ”))
if a==b:
print(“Computer:%s, Player:%s”%(a,b))
print(“Win”)
else:
print(“Computer:%s, Player:%s”%(a,b))
print(“Lose”)

Posted in python Tagged python, random Leave a comment

Post navigation

Categories

  • AI/PS繪圖技巧 (1)
  • 網路上的資源 (18)
  • Excel技能值 (13)
  • 韓國交換 (2)
  • Jira/Confluence (1)
  • python (5)
  • 喜歡的書 (12)
  • 寫過的電影 (24)
  • 工作技能 (17)
  • 一些小心得 (8)

Recent Posts

  • Jira-新建任務時同時自動建立子任務
  • 低成本考過PMP
  • Wordup 返現計畫 – 多益任務
  • 冬季限定!「無料」南港中信園區滑冰天堂
  • 被路人小孩搭訕
Website Built with WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Tingyu’s Learning Memo
    • Already have a WordPress.com account? Log in now.
    • Tingyu’s Learning Memo
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started