StupidBeauty
Read times:451Posted at:Fri Sep 21 04:27:34 2012
- no title specified

變態HelloWorld,Python版

本座在標題裏面已經劇透了,這是HelloWorld。

#!/usr/bin/python

from math import *

def f(x):

return int(round(96.75 + - 21.98 *cos(x* 1.118) + 13.29 *sin(x* 1.118) + - 8.387 *cos(2 *x* 1.118)\

+ 17.94 *sin(2 *x* 1.118) + 1.265 *cos(3 *x* 1.118) + 16.58 *sin(3 *x* 1.118)\

+ 3.988 *cos(4 *x* 1.118) + 8.463 *sin(4 *x* 1.118) + 0.3583 *cos(5 *x* 1.118)\

+ 5.878 *sin(5 *x* 1.118)))

print "".join([chr(f(x)) for x in range(12)])

不信運行一下試試。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4