摘要:
例1:随机生成x,y属于[-1,1]范围内的1000个点,并显示单位位于单位圆内的点: Python import numpy as np import matplotlib.pyplot as plt data = 2*np.random.rand(1000,2)-1 print(data) x= 阅读全文
posted @ 2020-01-29 22:55
cxc1357
阅读(243)
评论(0)
推荐(0)
摘要:
1、求出2-10000内的所有素数 Python: t = time() p_list = [] for i in range(2, b): flag = True for p in p_list: if p > math.sqrt(i): break if i % p == 0: flag = F 阅读全文
posted @ 2020-01-29 22:52
cxc1357
阅读(164)
评论(0)
推荐(0)
摘要:
1、指导思想 https://www.cnblogs.com/by1990/archive/2011/11/29/2267301.html 2、MFC教程 https://blog.csdn.net/wxq_wuxingquan/article/details/55668921 3、MFC画图 多种 阅读全文
posted @ 2020-01-29 22:49
cxc1357
阅读(252)
评论(0)
推荐(0)
摘要:
numpy中array的特性: https://www.jianshu.com/p/a75e522d5839# https://blog.csdn.net/zenghaitao0128/article/details/78300770 相关操作: #两个元素的向量 a = np.array([1,2 阅读全文
posted @ 2020-01-29 22:47
cxc1357
阅读(156)
评论(0)
推荐(0)
摘要:
1、在VS中新建项目:win32控制台——空 2、创建文件:源文件——右键——添加新建项——cpp文件 #include"iostream" using namespace std; int main() { cout << "hello" << endl; return 0; } 3、调试程序:c 阅读全文
posted @ 2020-01-29 22:45
cxc1357
阅读(159)
评论(0)
推荐(0)
摘要:
Python的类语句不会创建实例 类会创建命名空间,通过对象访问类的属性和方法 类不会创建作用域,对方法和属性的引用必须加以限定(如在方法中必须通过self引用实例的属性) class My1(): my1 = "My1bianliang" def __init__(self): print("My 阅读全文
posted @ 2020-01-29 22:43
cxc1357
阅读(126)
评论(0)
推荐(0)
摘要:
头元素信息: <title>:文档标题,只有一个 <base>:默认链接 <link>:文档与外部资源关系,常用于链接样式表CSS <style>:样式 <meta>:元数据,页面描述,关键字,文档作者等 <script>:客户端脚本,如JavaScript 获取网页:requests包 http请 阅读全文
posted @ 2020-01-29 22:40
cxc1357
阅读(97)
评论(0)
推荐(0)
摘要:
mooc例题 1 #include<stdio.h> 2 #include<malloc.h> 3 #include<string.h> 4 #include<time.h> 5 #include<math.h> 6 7 //指向结构体头节点的指针 8 typedef struct PolyNode 阅读全文
posted @ 2020-01-29 22:38
cxc1357
阅读(153)
评论(0)
推荐(0)
摘要:
1、钩子函数 干什么的:监视系统中的消息传递,截获并处理送给其他应用程序的消息 分类:线程钩子、全局钩子、日程钩子 http://www.doc88.com/p-7788837474461.html 2、动态链接库 干什么的:把一个模块中的函数调用链接到库模块中的实际函数上 3、模块、库 阅读全文
posted @ 2020-01-29 20:16
cxc1357
阅读(99)
评论(0)
推荐(0)
摘要:
如题: 1 import re 2 text="Guido will be out of the office from 12/15/2012 - 1/3/2013" 3 #日期的正则表达式模式 4 datepat = re.compile('(\d+)/(\d+)/(\d+)') 5 #找到并打印 阅读全文
posted @ 2020-01-29 20:10
cxc1357
阅读(153)
评论(0)
推荐(0)

浙公网安备 33010602011771号