2007年06月27日 星期三 22:48
ºÙºÙ£¬ СìÅҫһϣ¬ ÖÕÓÚÍê³ÉÁËÓÃÌ©ÀÕ¼¶ÊýÇósinº¯ÊýµÄ´úÂë¡£³ÌÐò²»¹»ÃÀ¡«¡« ÄÄΪ¸ßÊÖ°ïæÐÞ¸ÄÒ»Ï塃 ÎÊһϣ¬ ÈçºÎ½¨Á¢º¯Êý¿âÄØ£¿ while True: x=float(raw_input('enter a number')) n=0 a=1 b=1 y=0 while n<10: n=n+1 while b<=2*n-1: a=a*b b=b+1 s=1.0*((-1)**(n+1))*(x**(2*n-1))/a y=y+s print y -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070627/1f55b9cc/attachment.htm
2007年06月27日 星期三 23:21
Ç¿°¡¡£ÓÐûÓп´¹ý number ¿âÀïÃæÊÇÔõôʵÏֵģ¿¿´¿´ÔËÐÐÄãÕâ¸öÒª¶à³¤Ê±¼ä£¿ÕâÖÖ¶«Î÷£¬»¹Êǽ»¸øC°É¡£ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070627/3a768ce3/attachment.html
2007年06月27日 星期三 23:35
ÎÒ²»ÖªµÀÔõôÕÒµ½ÄÚÖú¯Êý¿â¡£ ºÜÏë¿´Ò»ÏÂÈí¼þÊÇÔõôʵÏÖÕâ¸ö¹¦Äܵġ«¡«ÄãÖªµÀÔÚÄÄÀïÂ𣿠ÔÚ07-6-27£¬Ben Luo <benluo在gmail.com> дµÀ£º > > Ç¿°¡¡£ÓÐûÓп´¹ý number ¿âÀïÃæÊÇÔõôʵÏֵģ¿¿´¿´ÔËÐÐÄãÕâ¸öÒª¶à³¤Ê±¼ä£¿ÕâÖÖ¶«Î÷£¬»¹Êǽ»¸øC°É¡£ > > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070627/2e4be991/attachment.htm
2007年06月28日 星期四 21:57
在 07-6-27,王顺翔<wsxpython在gmail.com> 写道: > 我不知道怎么找到内置函数库。 很想看一下软件是怎么实现这个功能的~~你知道在哪里吗? enter a number1 0.841470984808 enter a number2 0.909297426826 enter a number3 0.141120007859 enter a number4 -0.75680257874 enter a number5 -0.958933165197 enter a number6 -0.279816063636 enter a number7 0.647032114115 enter a number8 0.829433468659 enter a number9 -1.4281312933 enter a number0 0.0 enter a number10 -16.8118501374 enter a number sin值大于1了。
2007年06月29日 星期五 01:47
°¡¡«¡« Ôõô»á³öÏÖÕâÖÖÇé¿ö£¿ Ç°ÃæÊ®¸öÊý¶¼ÊǶԵİ¡¡£ ÎÒÒ²ÑéÖ¤¹ýµÄ¡£ Ϊʲôµ½10¾Í²»ÐÐÁËÄØ£¿ ÔÚ07-6-28£¬Âí̤·ÉÑà <honeyday.mj在gmail.com> дµÀ£º > > ÔÚ 07-6-27£¬Íõ˳Ïè<wsxpython在gmail.com> дµÀ£º > > ÎÒ²»ÖªµÀÔõôÕÒµ½ÄÚÖú¯Êý¿â¡£ ºÜÏë¿´Ò»ÏÂÈí¼þÊÇÔõôʵÏÖÕâ¸ö¹¦Äܵġ«¡«ÄãÖªµÀÔÚÄÄÀïÂ𣿠> > enter a number1 > 0.841470984808 > enter a number2 > 0.909297426826 > enter a number3 > 0.141120007859 > enter a number4 > -0.75680257874 > enter a number5 > -0.958933165197 > enter a number6 > -0.279816063636 > enter a number7 > 0.647032114115 > enter a number8 > 0.829433468659 > enter a number9 > -1.4281312933 > enter a number0 > 0.0 > enter a number10 > -16.8118501374 > enter a number > > sinÖµ´óÓÚ1ÁË¡£ > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070629/2f3303f8/attachment.html
2007年06月29日 星期五 01:49
¿ì·èÁË¡«¡« СÊý¶¼Ã»ÎÊÌ⣬ ΪʲôÊýÖµÒ»³¬¹ý10¾ÍÓÐÎÊÌâÄØ£¿ ÔÚ07-6-28£¬Âí̤·ÉÑà <honeyday.mj在gmail.com> дµÀ£º > > ÔÚ 07-6-27£¬Íõ˳Ïè<wsxpython在gmail.com> дµÀ£º > > ÎÒ²»ÖªµÀÔõôÕÒµ½ÄÚÖú¯Êý¿â¡£ ºÜÏë¿´Ò»ÏÂÈí¼þÊÇÔõôʵÏÖÕâ¸ö¹¦Äܵġ«¡«ÄãÖªµÀÔÚÄÄÀïÂ𣿠> > enter a number1 > 0.841470984808 > enter a number2 > 0.909297426826 > enter a number3 > 0.141120007859 > enter a number4 > -0.75680257874 > enter a number5 > -0.958933165197 > enter a number6 > -0.279816063636 > enter a number7 > 0.647032114115 > enter a number8 > 0.829433468659 > enter a number9 > -1.4281312933 > enter a number0 > 0.0 > enter a number10 > -16.8118501374 > enter a number > > sinÖµ´óÓÚ1ÁË¡£ > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070629/f3b3654f/attachment.htm
2007年06月29日 星期五 02:00
ÕÒµ½ÎÊÌâËùÔÚÁË£¬ ²»¹ýÕâ¸öÊǸöÊýѧÎÊÌâ¡£ ²»ÖªµÀÔÚÕâÀïÌÖÂÛÊÇ·ñºÏÀí¡£ ×ÜÖ®¾ÍÊǾ«¶È²»¹»¡£ ÔÚµÚ¶þ¼¶Ñ»·ÖУ¬ Ö»Òª¸Ä±änµÄÈ¡Öµ·¶Î§¾Í¿ÉÒÔÁË¡£±ÈÈç¸Ä³É while n<50¾Í¿ÉÒÔÁË¡£ ÒòΪÔÚnÈ¡50µÄʱºò£¬ ÊäÈë50Ò²»áµ¼Ö½á¹û²»¶Ô£¬µ«math.sin()¾ÍûÕâ¸öÎÊÌâ¡£ ²»¹ýÒѾÏëµ½½â¾ö°ì·¨ÁË£¬ Ö»Òª°Ñ¸³Öµ³ýÒÔ2pi£¬È»ºóÈ¥ÓàÊý¼ÆËã¾Í¿ÉÒÔÁË¡«¡« ºÙºÙ¡« Ã÷ÌìÐ޸ġ£ лл¡«¡«£¡£¡ ÔÚ07-6-29£¬Íõ˳Ïè <wsxpython在gmail.com> дµÀ£º > > ¿ì·èÁË¡«¡« СÊý¶¼Ã»ÎÊÌ⣬ ΪʲôÊýÖµÒ»³¬¹ý10¾ÍÓÐÎÊÌâÄØ£¿ > > ÔÚ07-6-28£¬Âí̤·ÉÑà <honeyday.mj在gmail.com> дµÀ£º > > > > ÔÚ 07-6-27£¬Íõ˳Ïè<wsxpython在gmail.com> дµÀ£º > > > ÎÒ²»ÖªµÀÔõôÕÒµ½ÄÚÖú¯Êý¿â¡£ ºÜÏë¿´Ò»ÏÂÈí¼þÊÇÔõôʵÏÖÕâ¸ö¹¦Äܵġ«¡«ÄãÖªµÀÔÚÄÄÀïÂ𣿠> > > > enter a number1 > > 0.841470984808 > > enter a number2 > > 0.909297426826 > > enter a number3 > > 0.141120007859 > > enter a number4 > > -0.75680257874 > > enter a number5 > > -0.958933165197 > > enter a number6 > > -0.279816063636 > > enter a number7 > > 0.647032114115 > > enter a number8 > > 0.829433468659 > > enter a number9 > > -1.4281312933 > > enter a number0 > > 0.0 > > enter a number10 > > -16.8118501374 > > enter a number > > > > sinÖµ´óÓÚ1ÁË¡£ > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070629/55dd2481/attachment.html
Zeuux © 2025
京ICP备05028076号