用户:徐罗百曦查看:3 回复:5 评论:3 创建时间:2016-08-06T22:07:40
怎样建站队!!!求回复,各位开恩,帮帮我吧!我是新手,麻烦各位啦!喵请各位多多关照,望师傅们多多给我点赞,多给我点建议,多教我一点~~~~~~~~
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
@好奇变成猫 这里有组战队攻略
http://mp.喵.qq.com/s?__biz=MzA4ODUwNTg3Ng==&mid=230935735&idx=1&sn=616fd30喵514d6559c05b4ce81dbc2ef&scene=20#wechat_redirect
点赞0
评论
文本文档txtclass Post():
def __init__(self,year,ty_pe):
self.year=year
self.ty_pe=ty_pe
def output_judgment(self):
if self.year<2020 or self.ty_pe=='官方精贴':
print('这个'+str(self.year)+"年的"+self.ty_pe+'适宜挖坟')
else:
print('这个'+str(self.year)+"年的"+self.ty_pe+'不适宜挖坟')
T=Post(2018,'水贴')
class Luoyang_shovel():
def __init__(self,Effect):
self.Effect=Effect
def dig_grave(self):
if self.Effect == '挖坟':
if T.year < 2020 or T.ty_pe == '官方精贴':
print('洛阳铲,挖!')
L=[Luoyang_shovel('铲土'),Luoyang_shovel('挖坟')]
T.output_judgment()
for i in L:
i.dig_grave()
点赞0
评论