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
python 解释器: 1、Python 命令行参数 --官方文档:https://docs.python.org/zh-cn/3/using/cmdline.html#options-you-shouldn-t-use 2、在Windows上使用 Python :https://docs.pyth ...
分类:
编程语言 时间:
2020-06-25 19:13:29
阅读次数:
113
由于在ubuntu环境下,将python做与python3.6做了软链接(ln -s python python3.6),并且pip也被我做了软链接,所以导致用pip安装virtualenvwrapper之后,在source启动virtualenvwrapper.sh时以及workon 虚拟环境时总 ...
分类:
移动开发 时间:
2020-06-25 19:10:16
阅读次数:
77
已知p,q,e求d p=473398607161 q=4511491 e=17 n = (p-1) * (q-1) def extendedEuclid(a, b): if b == 0: return 1, 0 else: x, y= extendedEuclid(b, a % b) x, y = ...
分类:
其他好文 时间:
2020-06-25 19:08:44
阅读次数:
66