- 博客(16)
- 资源 (2)
- 收藏
- 关注
原创 python编程快速上手第8章实践项目疯狂填词
import reoldFile=open('C:/Users/Administrator/Desktop/test.txt')newFile=open('C:/Users/Administrator/Desktop/test2.txt','w')oldFileContent=oldFile.read()tempFileContent=re.sub(r'[^a-zA-Z,\s]'," ...
2019-04-26 14:58:47 357
原创 python编程快速上手第8章项目范例randomQuiz Generator.py
import random# The quiz data. Keys are states and values are their capitals.capitals = {'Alabama': 'Montgomery', 'Alaska': 'Juneau', 'Arizona': 'Phoenix','Arkansas': 'Little Rock', 'California': ...
2019-04-25 08:54:30 473
原创 关于Head First Servlet&Jsp。。
在学习这本书的时候出现了第一个问题:在第三章MVC实战的时候,我按照书上的例子运行了一下,在dos命令行下运行成功了(书中代码有错误,要先修改一下)。但是这样编译太麻烦了,所以我想使用eclipse来完成,但是出现了问题。把所有之前的代码都导进去之后,总是出现错误提示404。我就纳闷了,明明之前在dos命令行下可以运行成功的,怎么在eclipse里就不行了呢?!查了很多资料,解决方法有2个,我
2013-06-26 18:30:50 3626
转载 【转载】asp.net中GridView索引超出范围。必须为非负值并小于集合大小
在练习gridview的编辑更新获取其中的主键ID时,出现错误:索引超出范围。必须为非负值并小于集合大小。参数名: index ,并且调试信息错误出现在此句: //获取选择行的主键 string aa = GridView2.DataKeys[e.RowIndex].Value.ToString(); 其中e.RowIndex 是指:当前行的索引值。
2012-11-25 16:00:56 2876 1
原创 Assignment2_Pyramid
/* * File: Pyramid.java * ------------------ * This program is a stub for the Pyramid problem, which draws * a brick pyramid. */import acm.graphics.*;import acm.program.*;public class Pyrami
2012-09-09 21:02:26 416
原创 Assignment2_GraphicsHierarchy
/* * File: .java * ---------------------------- * This program is a stub for the GraphicsHierarchy problem, which * draws a partial diagram of the acm.graphics hierarchy. */import acm.program.*
2012-09-09 20:35:14 326
原创 Assignment2_Target
/* * File: Target.java * ------------------ * This program is a stub for the Target problem, which displays * a target by adding concentric circles to the canvas. */import java.awt.Color;impor
2012-09-08 19:35:28 420
原创 Assignment2_Hailstone
/* * File: Hailstone.java * -------------------- * This program is a stub for the Hailstone problem, which computes * Hailstone sequence described in Assignment #2. */import acm.progra
2012-09-08 09:40:53 333
原创 Assignment2_FindRange
/* * File: FindRange.java * -------------------- * This program is a stub for the FindRange problem, which finds the * smallest and largest values in a list of integers. */import acm.p
2012-09-08 09:28:42 468 1
原创 Assignment2_Quadraticequation
/* * File: Quadratic.java * -------------------- * This program is a stub for the Quadratic problem, which finds the * roots of the quadratic equation. */import acm.program.*;pub
2012-09-08 09:05:58 296
原创 An Example of Stepwise Refinement(BanishWinter)
import stanford.karel.*;public class BanishWinter extends SuperKarel {public void run() {while (beepersInBag()) {moveToTree();climbTree();putDownBeeper();toBottom();}}p
2012-09-06 18:27:04 389
原创 Assignment1_MidFindingKarelpoint
/* * File: MidFindingKarelpoint.java * ------------------------------- * When you finish writing it, the MidpointFindingKarel class should * leave a beeper on the corner closest to the center
2012-09-05 09:12:41 576
原创 Assignment1_CheckerboardKarel
/* * File: CheckerboardKarel.java * ---------------------------- * When you finish writing it, the CheckerboardKarel class should draw * a checkerboard using beepers, as described in Assignmen
2012-09-04 20:39:52 435
原创 Assignment1_StoneMasonKarel
/* * File: StoneMasonKarel.java * -------------------------- * The StoneMasonKarel subclass as it appears here does nothing. * When you finish writing it, it should solve the "repair the quad"
2012-09-04 20:38:26 474
原创 Assignment1_CollectNewspaperKarel
/* * File: CollectNewspaperKarel.java * -------------------------------- * At present, the CollectNewspaperKarel subclass does nothing. * Your job in the assignment is to add the necessary cod
2012-09-04 20:36:47 533
原创 Counting Each Letter in a String
import java.util.*;public class Problem {/*** @param args*/final static int SIZE = 100;public static void main(String[] args) {// TODO Auto-generated method stubchar[] char
2012-09-04 18:53:37 380
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人