公式是 Rd =(Ub-Ua)/Ua 结果需要用百分比输出 python3.5
#!/user/bin/env python3
# -*- coding: utf-8 -*-
Ua = [25185,8041,60212,12825,80808,32736,18515]
Ub = [27655,2163,42554,35335,47601,34418,11615]
def fn()
return (y-x)/x*100 for x,y in zip<Ua,Ub>
print('Rd:%s',%%%fn)
求指导怎么修改一下比较好
主要是主函数的语法有错误 希望大神能够帮助我
诶 其实我是想问如何完成这个两个list对应元素进行数学运算再输出一个新的list的程序,因为原始的两个list实际上是手动输入的 所以并不用检查重复元素这样子。。。