我是一个初学者,我想做一些可以结合单词的事情。不幸的是,我发现了这个错误。你不知道怎么解决吗? :)。
我的代码是:
import random
from random import *
from random import random
from random import randint
PRJM = ["vyjebaný", "zkurvený",
"zpičený","zpocený""zechcaný","zkunděný","zamrdaný"
,"zpičený","zasraný","vymrdaný","pojebaný","vyšukaný"
,"vyprstěný","vydrbaný","pojebaný","posraný","najebaný",]
dva =
["píčus","mrdáč","koňomrd","kozomrd","pičolíz","kundovec",
"šukáč","mrdáč","jebálek","sráč","vyjebanec","čepil"]
tri = ["píčo","mrdo","koňo","kozo","kundo","šuko","jebo","sračko",
"vyjebano","kokoto","dildo","vyjebanco","rypáko"]
deset = ["líz","šuk","mrd","jeb","prc","gej"]
h = random.randint (0, 1)
if h == 0:
print(random.choice(PRJM) + random.choice(dva))
else:
print(random.choice(tri) + random.choice(deset))
错误是:
Traceback (most recent call last):
File "C:/Users/Testy/Desktop/nadávkomat.py", line 12, in <module>
h = random.randint (0, 1)
AttributeError: 'builtin_function_or_method' object has no attribute 'randint'