我试图让新的MySQL Workbench安装工作,但每次尝试我都会收到此错误:
def pyramid():
min_pyramid_size = 5
max_pyramid_size = 10
num_rows = random.randint(min_pyramid_size, max_pyramid_size)
outer_z = 0
for i in range(num_rows):
x = ''.join(str(random.choice('*&')) for j in range(2*i+1))
print(' ' * (num_rows - i) + x)
inner_z = x.count('&') # Alternatively calculate inner_z twice, but don't store it:
print(inner_z) # print(x.count('&'))
outer_z += inner_z # outer_z += x.count('&')
print(outer_z)
我已经在这台计算机上安装了Python,但我尽职尽责地返回并更新到最新版本(3.5.2),但我仍然遇到同样的错误。
知道了什么?