使用Perl DBI,如何检查DB表的给定列是否未签名?
以下代码无法按预期工作(使用MySQL DB):
import sympy as sp
import numpy as np
import matplotlib.pyplot as plt
XMIN, XMAX, DATAPOINTS = -3., 3., 100
# get a recognizable equation (in terms of x)
x = sp.Symbol('x')
while True:
try:
s = input("Enter a function: Y(x) = ")
y = sp.sympify(s)
break
except sp.SympifyError as se:
print(se)
# generate points to plot
xs = np.linspace(XMIN, XMAX, DATAPOINTS)
ys = [y.evalf(subs={"x":xval}) for xval in xs]
# plot points
plt.plot(xs, ys, 'bo')
plt.show()
答案 0 :(得分:1)
如果该界面中没有任何原生内容,希望您可以使用DBI解决此问题:
$('span[id^="init-like"]').click ->
if $(this).html() == "true"
$(this).parent().find('span[id^="like-click"]').hide()
else
$(this).parent().find('span[id^="unlike-click"]').hide()
$('span[id^="init-like"]').click()