摘要: http://blog.csdn.net/bill_chuang/article/details/18215051 6、在图中添加直线和箭头 gnuplot> set arrow from 0.0,0.0 to 0.6,0.8 %从(0.0,0.0)到(0.6,0.8)画一个箭头gnuplot> s 阅读全文
posted @ 2018-02-02 09:59 喝姜水涂风油精 阅读(596) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt #X轴,Y轴数据 y = [0.3,0.4,2,5,3,4.5,4] x = range(0,len(y)) plt.figure(figsize=( 阅读全文
posted @ 2018-02-01 23:31 喝姜水涂风油精 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题目大意是给定一个n×n的二维数组,对数组更改和查找。解题思路是用树状数组。#include<stdio.h>#define N 1005int c[N][n]; 阅读全文
posted @ 2011-05-20 09:19 喝姜水涂风油精 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 今天再学习了一下字符串,整理下贴出来。1.字符串常量是双引号括起来的字符序列。2.一个字符串常量占据的内存字节数是字符串中字符数加1.多出来的那个字符位于字符串的尾部,存放的是字符'\0'。3.如果字符串常量中包括双引号,则双引号应写为"\"",而"\"字符在字符串中出现时需连写两次,变成"\\"。如:printf("He said:\"I am a stu\\dent.\"");该语句输出结果为:He said:"I am a stu\dent"4 阅读全文
posted @ 2011-05-04 21:45 喝姜水涂风油精 阅读(276) 评论(3) 推荐(0) 编辑