-
这个错在哪里了,我是按照网上写的啊 SyntaxError: invalid syntaxPerlcodePython3.2(r32:88445,Feb202011,21:29:02)[MSCv.150032bit(Intel)]onwin32Type"copyright","credits"or"license()"formoreinformation.>>>ifx<0:x=0print("A&default7 时间:04-03 + 阅读全文
-
thread问题求救importthreadingcounter=0classMyThread(threading.Thread): defrun(self): globalcounter foriinrange(0,10000): counterzhltmvp 时间:04-03 + 阅读全文
-
eclipse+pydev1.6.5,改成utf-8编码遇到问题不知道在pydev1.6.5中怎么改编码方式为utf-8,运行程序出现如下错误。下载(1.03KB)2011-04-0215:51iCymbidium 时间:04-02 + 阅读全文
-
求使用Python编写的CRC检验码函数参考的C语言的CRC函数,生成特定的CRC检验码,现在需要使用Python实现一样的功能,求使用Python编写的函数代码,非常感谢!u16crc(u8*array,u8 num,u8n){ u8 i,j; u8 CL; u8 &nbzqsq 时间:03-30 + 阅读全文
-
请教,类中的selfDiveintopython中提到Inthe__init__method,selfreferstothenewlycreatedobject;inotherclassmethods,itreferstotheinstancewhosemethodwascalled.这两处区别在哪里,最好有个例子说明一下,谢谢。beyond2004 时间:04-01 + 阅读全文
-
关于next()的问题这是为什么?不懂了,为什么必须赋值到一个变量上才能用next()方法?>>>a='abcdefg'>>>enumerate(a).next()(0,'a')>>>enumerate(a).next()(0,'a')>>>enumerate(a).next()(0,'a')>>&liaozd 时间:04-01 + 阅读全文