.wk-prd-btn:focus {
background-color: #e74481;
color: white;
}
.wk-prd-btn:hover {
background-color: #e74481;
color: white;
}
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
drop()
omitted for privacy reasons, line 138, in drop
print("here is your",gunrarity,item)
NameError: global name 'gunrarity' is not defined
答案 0 :(得分:0)
只需在函数声明后写这个字符串:
gunrarity=0
像:
def drop():
gunrarity=0
drop=random.randint(1,1000)
print("Possible drops:")
AND WRITE CODE CLEAR !!! 使用4个空格作为缩进