给的代码是这个:
def display_banner():
def get_position_number_from_user():
def get_number_places_to_move():
def get_next_player_num(player_number):
def congratulate_player(player_number):
中间怎么填写呢
def get_position_number_from_user():
def get_number_places_to_move():
def get_next_player_num(player_number):
def congratulate_player(player_number):
中间怎么填写呢
def display_banner():
print("*" * 15)
print('COIN STRIP GAME')
print("*" * 15)
def get_position_number_from_user():
num = int(input('Enter position number of coin:'))
return num
def get_number_places_to_move():
count = int(input('Enter number of places to move coin:'))
return count
def get_next_player_num(player_number):
if player_number == 1:
return 2
else:
return 1
def congratulate_player(player_number):
print('=' * 29)
print('** Y O U H A V E W O N **')
print(' '* 7 +'PLAYER NUMBER:{}'.format(player_number))
print('=' * 29)
display_banner()
get_position_number_from_user()
get_number_places_to_move()
print(get_next_player_num(1))
congratulate_player(1)