摘要: moveCommandM startpoint absolute valuem startpoint offset to previous pointdrawCommand L,l endPoint create a straight lineH,h x create a horizontal lineV,v y create a verizontal lineC,c controlPoint1 controlPoint2 endpoint cubic Bezier curveQ,q controlPoint endPoint quadratic Bezier curveS,s contro. 阅读全文
posted @ 2012-11-15 14:16 fenix 阅读(169) 评论(0) 推荐(0) 编辑
摘要: http://www.codeproject.com/Articles/14535/Accessing-WMF-metadata-with-Chttp://blogs.msdn.com/b/wpfsdk/archive/2006/05/17/converting-wmf-images-to-xaml-using-graphic-designer.aspx无损放大图片http://www.cnblogs.com/Michael-zds/archive/2011/07/13/2104907.htmlinkspacehttp://inkscape.org/download/?lang=enhttp: 阅读全文
posted @ 2012-11-14 16:23 fenix 阅读(217) 评论(0) 推荐(0) 编辑
摘要: + plus 加号;正号 - minus 减号;负号 ± plus or minus 正负号 × is multiplied by 乘号 ÷ is divided by 除号 = is equal to 等于号 ≠ is not equal to 不等于号 ≡ is equivalent to 全等于号 ≌ is equal to or approximately equal to 等于或约等于号 ≈ is approximately equal to 约等于号 < is less than 小于号 > is more t... 阅读全文
posted @ 2012-09-22 11:39 fenix 阅读(211) 评论(0) 推荐(0) 编辑
摘要: coded by 老鱼from itertools import combinations, productdef func(numbers, m, s): def determinate(args): return sum(args) == s return filter(determinate, product(numbers, repeat = m))print(func(range(10), 2, 5))输出: [(0, 5), (1, 4), (2, 3), (3, 2), (4, 1), (5, 0)]【 在 wenti (question) 的大作中提到: 】: n个数,任取m个 阅读全文
posted @ 2012-09-18 10:37 fenix 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8fromPILimportImageimportwin32apiimportwin32guiimportwin32uiimportwin32conimportmath_useless=[(237,237,237),(247,247,247)]_squareWidth,_squareHeight,_blocka=23,15,28.3_range=4#避免重复分的正方形版块大小_intervalConflict=600#3*3格内的点击相隔时间ms_interval=60#实际点击的时间间隔msdefColorComp(color1,color2):deltaR=abs( 阅读全文
posted @ 2012-08-15 18:25 fenix 阅读(692) 评论(0) 推荐(0) 编辑
摘要: publicobjectClone(){BinaryFormatterFormatter=newBinaryFormatter(null,newStreamingContext(StreamingContextStates.Clone));MemoryStreamstream=newMemoryStream();Formatter.Serialize(stream,this);stream.Position=0;objectclonedObj=Formatter.Deserialize(stream);stream.Close();returnclonedObj;} 阅读全文
posted @ 2012-07-10 09:10 fenix 阅读(169) 评论(0) 推荐(0) 编辑
摘要: class SudokuCal: def __init__(self): self.str1 = '0' * 81 self.str2 = '0' * 81 self.answer = 0 self.done = False self.loop = 0 def same_row(self,i,j): return (i%9==j%9) def same_col(self,i,j): return (i-j)%9==0 def same_block(self,i,j): return (i%27%9/3==j%27%9/3) def print_format(se 阅读全文
posted @ 2012-07-04 18:15 fenix 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 根据网上的C版本改写publicstaticclassWCoder{//原始加密索引staticbyte[]_cypherOrg=newbyte[]{95,225,56,72,216,115,149,164,247,2,6,10,30,34,102,170,229,52,92,228,55,89,235,38,106,190,217,112,144,171,230,49,1,3,5,15,17,51,85,255,26,46,114,150,161,248,19,53,83,245,4,12,20,60,68,204,79,209,104,184,211,110,178,205,159,186 阅读全文
posted @ 2012-03-31 13:57 fenix 阅读(310) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// This class allows delegating the commanding logic to methods passed as parameters, /// and enables a View to bind commands to objects that are not part of the element tree. /// </summary> public class DelegateCommand : ICommand { #region Constructors /// <summary> 阅读全文
posted @ 2011-07-01 15:20 fenix 阅读(413) 评论(0) 推荐(0) 编辑
摘要: ASP.NET 4 applications that are configured as children of applications that run earlier versions of ASP.NET might fail to start because of configuration or compilation errors. The following example shows a directory structure for an affected application./parentwebapp (configured to use ASP.NET 2.0 o 阅读全文
posted @ 2011-06-02 17:39 fenix 阅读(775) 评论(0) 推荐(0) 编辑