● 不要使用可变对象作为函数默认值 def append(value, arr=[]): arr.append(value) return arr print append(1) print append(1) print append(1) 运行结果: [1] [1, 1] [1, 1, 1] 原 ...
分类:
编程语言 时间:
2020-06-25 19:55:11
阅读次数:
69
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:
移动开发 时间:
2020-06-25 19:52:42
阅读次数:
127
简介 BeautifulSoup提供一些简单的、python式的函数用来处理导航、搜索、修改分析树等功能。它是一个工具箱,通过解析文档为用户提供需要抓取的数据,因为简单,所以不需要多少代码就可以写出一个完整的应用程序。BeautifulSoup自动将输入文档转换为Unicode编码,输出文档转换为u ...
分类:
其他好文 时间:
2020-06-25 19:49:45
阅读次数:
40
1、Python: print("祝大家2020年端午节快乐!") 2、JAVA: System.out.println("祝大家2020年端午节快乐!"); 3、C: printf("祝大家2020年端午节快乐!"); 4、C++: cout<<"祝大家2020年端午节快乐!"; 5、QBasic ...
分类:
编程语言 时间:
2020-06-25 19:48:02
阅读次数:
78
1 '{:08}'.format(11) 2 3 4 5 mat = "{:020}\t{:028}\t{:032}" 6 print(mat.format(1,2, 3)) 冒号后面指定输出宽度,:后的0表示用0占位。 out: 1 '00000011' 2 3 4 Name:Aviad Age: ...
分类:
编程语言 时间:
2020-06-25 19:42:56
阅读次数:
187
1.当需求只是执行一个循环操作的时候,尽量使用循环而不是列表解析,这样更符合python提倡的直观性 for item in sequence:process(item)122.当有内建的操作或者类型能够以更直接的方式实现的,不要使用列表解析例如复制一个列表时,使用:L1=list(L)即可,不必使 ...
分类:
其他好文 时间:
2020-06-25 19:40:25
阅读次数:
64
卷积神经网络 | TensorFlow|  Summary features:['sepal length (cm)', 'sepal width (cm)', 'petal length (cm)', 'petal width (cm)'] 实例:[5.1, 3. ...
分类:
编程语言 时间:
2020-06-25 19:35:25
阅读次数:
56
前言 使用python manage.py makemigrations时出现报错: from err django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlcl ...
分类:
数据库 时间:
2020-06-25 19:32:03
阅读次数:
216
import React from "react"; import ReactDOM from "react-dom" import './index.css'; import * as serviceWorker from './serviceWorker'; //jsx 需要符合xml规范 // ...
分类:
Web程序 时间:
2020-06-25 19:17:10
阅读次数:
57