- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 python自然语言处理笔记-第三章
对网络电子书的访问使用python3.4对该例进行测试#python3.0对bytes和str进行了严格的区分,因此想要获得字符串的输出,需要对字节码进行重新编码from urllib.request import urlopenurl="http://www.gutenberg.org/files/2554/2554.txt"raw=urlopen(url).
2015-03-16 15:48:40
439
原创 matlab arrayfun 函数使用
% To run the examples in this section, create a nonscalar structure array with arrays of different sizes in field f1.s(1).f1 = rand(3, 6);s(2).f1 = magic(12);s(3).f1 = ones(5, 10);% Count the numb
2015-01-12 10:50:01
2135
原创 汉诺塔问题
问题描述:现在有三根相邻的柱子,标号为A,B,C,A柱子上从下到上按金字塔状叠放着n个不同大小的圆盘,现在把所有盘子一个一个移动到柱子B上,并且每次移动同一根柱子上都不能出现大盘子在小盘子上方,请问至少需要多少次移动输出移动方式#include"stdio.h"int main(){ void hanio(int n,char one,char two,char three);//
2012-12-17 21:17:19
396
原创 倒置字符串
#include"stdio.h"#include"string.h"int main(){ char array1[100],array2[100]; int i,n; scanf("%s",array1); n=strlen(array1); for(i=0;i { array2[i]=array1[n-1-i]; } array2[n]='\
2012-12-15 09:12:30
268
原创 学了c语言,记录下编程过程的点点滴滴.
#includeint main(){ int a[21][21]={0}; int i,j,t,n; printf("Please input a number:"); scanf("%d",&n); if(n%2==0) printf("The magic is not exsited"); else { for(i=0,j=(n-1)/2,t=1
2012-12-15 09:05:28
263
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人