E
Size: a a a
E
WA
import sys
for inputline in sys.stdin:
a, b = inputline.split()
WA
WA
from sys import stdin
text = stdin.read()
TT
НП
YS
YS
YS
S
ИБ
for i in range(1,5):
self.butler_left_strike = Animation(source='png/blue_man_%d.png' %i, duration=0.5)
TypeError
: int() argument must be a string, a bytes-like object or a number, not 'Animation'E
for i in range(1,5):
self.butler_left_strike = Animation(source='png/blue_man_%d.png' %i, duration=0.5)
TypeError
: int() argument must be a string, a bytes-like object or a number, not 'Animation'ИБ
def to_strike_enemy(self):
strike_p1 = Pounding().player_serial_strike()
strike_p2 = Pounding().enemy_serial_strike()
if self.current_health_player_one > 0 and self.current_health_player_two > 0:
if strike_p1 > self.current_health_player_two:
self.current_health_player_two **= 0
self.current_health_player_two -= 1
self.ids.health_bar_p2.value = self.current_health_player_two
else:
for i in range(1,5):
self.butler_left_strike = Animation(source='png/blue_man_%d.png' %i, duration=0.5)
self.butler_left_strike.start(self.ids.my_frame)
self.current_health_player_two -= strike_p1
self.ids.health_bar_p2.value = self.current_health_player_two
if self.current_health_player_one > 0 and self.current_health_player_two > 0:
if strike_p2 > self.current_health_player_one:
self.current_health_player_one **= 0
self.current_health_player_one -= 1
self.ids.health_bar_p1.value = self.current_health_player_one
else:
self.current_health_player_one -= strike_p2
self.ids.health_bar_p1.value = self.current_health_player_one
E
def to_strike_enemy(self):
strike_p1 = Pounding().player_serial_strike()
strike_p2 = Pounding().enemy_serial_strike()
if self.current_health_player_one > 0 and self.current_health_player_two > 0:
if strike_p1 > self.current_health_player_two:
self.current_health_player_two **= 0
self.current_health_player_two -= 1
self.ids.health_bar_p2.value = self.current_health_player_two
else:
for i in range(1,5):
self.butler_left_strike = Animation(source='png/blue_man_%d.png' %i, duration=0.5)
self.butler_left_strike.start(self.ids.my_frame)
self.current_health_player_two -= strike_p1
self.ids.health_bar_p2.value = self.current_health_player_two
if self.current_health_player_one > 0 and self.current_health_player_two > 0:
if strike_p2 > self.current_health_player_one:
self.current_health_player_one **= 0
self.current_health_player_one -= 1
self.ids.health_bar_p1.value = self.current_health_player_one
else:
self.current_health_player_one -= strike_p2
self.ids.health_bar_p1.value = self.current_health_player_one
ИБ
E
ИБ
from kivy.animation import Animationвот, идёт импорт из фреймворка Kivy
E
ИБ
ИБ