07 2020 档案
摘要:win移植linux python执行shell脚本 os.system("command") os.popen("command") os.popen() 返回的是一个文件对象 subprocess.call() print(subprocess.call(["ls","-l"],shell=Fa
阅读全文
摘要:iterable 与 iterator range returns an iterable, not an iterator. To get an iterator, you need to call iter() >>> x = range(20) >>> next(x) TypeError: '
阅读全文
摘要:anaconda winerror 127找不到指定的程序 现象**:conda install package 时,报错 winerror 127找不到指定的程序。 环境:win 10 + anaconda 4.8.0 / python 3.7。 解决(亲测):参考帖子https://github
阅读全文
摘要:type isinstance() 与 type() 区别: type() 不会认为子类是一种父类类型,不考虑继承关系。 isinstance() 会认为子类是一种父类类型,考虑继承关系。 如果要判断两个类型是否相同推荐使用 isinstance()。 class A: pass class B(A
阅读全文
摘要:npm 指令 查看npm安装路径 npm config ls 全局安装包 npm install package -g 查看全局安装的模块 npm list --depth=0 -g Cannot find Module xxx 1.书写错误,往往是写错了模块的名称,而导致无法加载 2.未安装相关模
阅读全文
摘要:Byte和char char 是字符型,byte 是字节型 char是用来表 示一个字符,而不是一个字,因为一个字要占用两个字节。而存储一个ANSI字符只需一个字节。 byte类型是最自由的一种。它就占用一个字节,但没有定义这个字节拿来干什么。Byte定义为一个Unsigned char类型。 也就
阅读全文

浙公网安备 33010602011771号