问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
import random
def choice_n (n):
n_ = [x for x in range(10)]
m_ = []
if n > 0:
for i in range(n):
?
?
?
t = [str(x) for x in m_]
t = "".join(t)
return eval(t)
else:
return -1
print(choice_n(7))