以下代码是否有效?
var htmlattri="background-color:red;";
$('a').css("style",htmlattri);
Run Code Online (Sandbox Code Playgroud)
如果没有,什么是正确的解决方案?
我在python中写了两个数字的小代码.
addition.py
def add(a,b):
c=a+b
print "result is...",c
mainpgm.c
???
Run Code Online (Sandbox Code Playgroud)
如何调用C(mainpgm)程序中的addition.py/add函数.
我已经看到了一些链接,但我不清楚.
有关在c中调用该函数的任何建议.