摘要:
import numpy as np def asum(a_list,b_list,n1=2,n2=3): a = np.array(a_list) b = np.array(b_list) c = pow(a,n1) + pow(b,n2) return c a_lst = [1,2,3,4] b 阅读全文
摘要:
类 类的作用是用来封装事物的属性和描述,当类作为一个模块时,建议不要在模块中实例化和调用类。 类变量、实例变量、实例方法 class Student: name = 'will' age = 0 sum = 0 def __init__(self,name,age): self.name = nam 阅读全文
摘要:
是不是在使用ubuntu的时候特别是安装或更新的时候会出现下面的情况: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the admin 阅读全文