04 2010 档案
摘要:首先更改当前路径:[代码]然后Check下,是否成功[代码]打印出自定义目录[代码]这里新建文件fibo.py代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->>>deffib(n):>>>a,b=0,1>...
阅读全文
摘要:>>> # Fibonacci series: ...# the sum of two elements defines the next ... >>> a, b = 0, 1 >>> while b < 10: print(b) a, b = b, a+b 第一行,变量 a和b同時获得新的值0和1在下面的也是同时获得,这样恰...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->>>#Replacesomeitems:...a[0:2]=[1,12]>>>a[1,12,123,1234]>>>#Removesome:.....
阅读全文
摘要:python 字符转译 用“\”python 长字符串连接 ,在每行最后加上“\”转意符:“\” [代码] ” [代码]
阅读全文
摘要:最近在做项目,发现在使用Mysql提供给C#操作的类不是和好用,就想办法写了一个操作方便的Mysql数据层类。比如以前在执 行一个查询代码publicDataSetGetdataset(longpkid){stringsql="select*frommytablewherepkid=@pkid";MySqlCommand_dbcomm=_dbconn.CreateCommand();MySqlPa...
阅读全文
浙公网安备 33010602011771号