📜  头或尾python代码示例

📅  最后修改于: 2022-03-11 14:45:56.903000             🧑  作者: Mango

代码示例1
import random
name = str(input("Who will take head your name:- "))
name2 = str(input("Who will take tail your name:- "))
head_or_tail = random.randint(0,1)
if head_or_tail == 1:
    print(name,"you won it's Head and",name2,"lost")
elif head_or_tail == 0:
    print(name2,"You won it's tail and",name,"you lost")