我有一个相当复杂的PyQt的应用程序(QT5,在Spyder的运行),在此,我到底做 def main():
from PyQt5 import QtWidgets
if not QtWidgets.QApplication.instance():
app = QtWidgets.QApplication(sys.argv)
else:
app
打印时出错y。有人可以请扩展为什么? from math import *
def polysum(n, s):
x = 0.25 * n * (s**2)
print (x)
y = (math.tan(math.pi/n)
print (y)
z = x/y
return z
x = polysum(5, 57)
prin