如何用python寫一段浪漫的代碼?

可以是簡短有韻味的情書式,
也歡迎冗長而效果拔群的萬行代碼,求大神們提供一些思路orzzzzzz


千萬千萬別用代碼表白,因為Python已經告訴你了:

&>&>&> "she" is not "yours"
True


以後問這種問題記得匿名(手動滑稽)


你能這麼想,已經泡不到妹子了。
/微笑
————————————————————
from turtle import *
畫個愛心吧
朴樸素素
不需要多好看多形象
下面隨手附上你的銀行卡支付密碼
愛,就是這麼簡單


flag = True
while flag:
print("love you")


啥?程序員?泡妹紙?


import webbrowser

def biaobai():
if tizhu.appearence is handsome:
return "妹子我老喜歡你了"
elif tizhu.salary.monthly &>= 300000:
return "跟我混我養你"
else:
webbrowser.open_new("http://i.imgur.com/FX1dBzg.jpg")

題主加油吧,寫程序表白這種事情千萬別干……


容我裝逼寫一個中長篇。

#####################################
######### World is colorful #########
#####################################

class tallHandsomeRich(object):
"High score"
def why(self):
raise AttributeError("Sorry.")

class tall(tallHandsomeRich):
"High score"

class handsome(tallHandsomeRich):
"High score"

class rich(tallHandsomeRich):
"High score"

class others(object):
"High score but love you"
def why(self):
print "You are a good man."

def profile(fun):
def _profile(u):
if "High score" in u["are"].__doc__:
return fun(u)
else:
pass
return _profile

#####################################
########### Life is short ###########
#####################################
me = {"are":others()}

def way_1():
# one year later,something wrong about raise AttributeError("Sorry.")
print "-------------------------one year later-------------------------------"
print "You want to see my whole profile."
print me["are"].__doc__
global result
result = [me]

def way_2():
print len(result)
print "......"

#####################################
########## Life is complex ##########
#####################################

@profile
def make_a_date_with(u):
if type(u["are"]) not in [tall,handsome,rich]:
return False
else:
return True

def why(u):
if type(u["are"]) == others:
u["are"].why()

#####################################
############### Story ###############
#####################################

# There is one day when I meet you.
seq=[{"are":tall()},{"are":handsome()},{"are":rich()}]

# I want you
seq.append(me)

# say love to...
result=filter(make_a_date_with,seq)

# but
if me not in result:
print "I am not accepted."
why(me)
way_1()
else:
print "I am accepted."
way_2()

結果,我只能說心酸。


推薦閱讀:

女生如何得體的拒絕陌生男生要手機號?
被好朋友表白怎麼回應??
你們有沒有很奇葩的被表白或者表白經歷?
男生追求女生接觸了多久後對她表白成功幾率會比較大?
最令你感動的一句表白?

TAG:Python | 編程 | 代碼 | 表白 | 計算機科學 |