import random
class bin:
wuqi = '枪'
xueliang = 1
def kaiqiang(self):
print("开始开枪")
def pao(self):
print("开始跑")
class xaibin(bin):
def tiao(self):
print("跳伞")
class gongbin(bin):
def walei(self):
print("挖地雷")

class jijushou(bin):
def init(self,wuqi):
self.wuqi=wuqi
def sheren(self):
print("用",self.wuqi,'射击敌人')
jujishouArr = []
qiangArr = ['来福枪','AK47','沙漠之鹰','B42','M164']

for item in range(1,101):
index = random.randint(0,4)
jujishouArr.append(jijushou(qiangArr[index]))

for item in jujishouArr:
item.sheren()