水韬呀的博客I've been writing a program in python that simulates 100 coin tosses and gives the total number of tosses. The problem is that I also want to print the total number of heads and tails.Here's my code:i...
学姐吖的博客猜硬币解法1import randomguess = ‘’while guess not in [0,1]:print(’------猜硬币游戏------’)print(‘猜一猜硬币是正面还是反面?’)guess = int(input(’“正面”请输入0,“反面”请输入1:’))#注意要用int...