n=eval(input("请输入n:"))s=1 while n<0: print("input error") n=eval(input("请输入n:"))if(n==0): s=1else: for i in range(1,n+1): s=s*i print("循环输出n的阶乘:{}".fo ...
分类:
其他好文 时间:
2017-04-23 11:21:08
阅读次数:
117
前几天一直发现写入文件的数据全是0 ,找了非常长时间发现问题在以下的地方: P:a是一个float数,如31.000000,然后运行以下的格式化语句时,结果str的值全是0。(我知道讲float格式成int是不严谨的,可是为什么是0不是非常清楚?可是这种问题在调试过程程是非常难发现的) str.Fo ...
分类:
其他好文 时间:
2017-04-21 18:45:14
阅读次数:
117
w https://en.wikipedia.org/wiki/Planar_graph The Polish mathematician Kazimierz Kuratowski provided a characterization of planar graphs in terms of fo ...
分类:
其他好文 时间:
2017-04-20 23:07:00
阅读次数:
367
/*css代码*/ /* poptip */ .poptip{position: absolute;top: 20px;left:20px;padding: 6px 10px 5px;*padding: 7px 10px 4px;line-height: 16px;color: #DB7C22;fo ...
分类:
Web程序 时间:
2017-04-18 13:19:33
阅读次数:
175
开源项目 MVC从ViewModels生成丰富的HTML表单:https://github.com/AiWoBieZou/FormFactory Umbraco 7 表单构造器:https://github.com/AiWoBieZou/FormEditor 首先,分析一下开源项目,找找灵感。 Fo ...
分类:
其他好文 时间:
2017-04-17 14:03:01
阅读次数:
147
1.介绍JConsole图形用户界面是符合Java管理扩展(JMX)规范的监视工具,可以监测有关在Java平台上运行的应用程序的性能和资源消耗的信息。启动JConsolejconsole[options][connection...]connection=pid|host:port|jmxURL-interval=n:设置更新间隔(默认4秒)-notile:不平铺(fo..
分类:
其他好文 时间:
2017-04-16 18:22:24
阅读次数:
316
//抽象工厂 //抽象食物 namespace abstractFactory{ public abstract class food { public abstract void Food(); }} //食物1 namespace abstractFactory{ public class fo ...
分类:
Web程序 时间:
2017-04-16 15:19:07
阅读次数:
180
原理:对于每个不超过N的非负整数p,删除2*p,3*p,4*p,...,当处理完所有数之后,没有被删除的数就是素数 int vis[1001];void isprime(){ for(int i=2;i*i<=m;i++)//假设p=i; { if(!vis[i])//p不在之前的倍数行列 { fo ...
分类:
其他好文 时间:
2017-04-16 10:59:02
阅读次数:
152
Goals determine what you are going to be. 目标决定你将成为什么样的人。 Owning some goals in life means you will have specific directions that can guide you to go fo ...
分类:
其他好文 时间:
2017-04-15 13:27:04
阅读次数:
157
It does not do to dwell on dreams, and forget to live. 人不能只生活在梦里,只依靠虚幻的东西而忘记了生活。 Don't forget to live. Because only the real world can give you the fo ...
分类:
其他好文 时间:
2017-04-14 12:00:45
阅读次数:
235