You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
class Summary:
import time
def __init__(self):
self.confirmed = 0
self.confirmedRelative = 0
self.curConfirm = 0
self.curConfirmRelative = 0
self.died = 0
self.diedRelative = 0
self.cured = 0
self.curedRelative = 0
self.asymptomatic = 0
self.asymptomaticRelative = 0
self.unconfirmed = 0
self.unconfirmedRelative = 0
self.icu = 0
self.icuRelative = 0
self.overseasInput = 0
self.overseasInputRelative = 0
self.unOverseasInputCumulative = 0
self.unOverseasInputNewAdd = 0
self.icuDisable = 0
def __str__(self):
return '\n累计确诊: %d\n累计确诊增加: %d\n现有确诊: %d\n新增确诊( 较昨日) : %d\n累计死亡: %d\n新增死亡: %d\n累计治愈: %d\n新增治愈: %d\n\
累计无症状感染者:%d\n新增无症状感染者: %d\n现有疑似: %d\n新增疑似: %d\n现有重症: %d\n新增重症: %d\n累计境外输入: %d\n\
新增境外输入:%d\n累计非境外输入的确诊: %d\n非境外输入的新增确诊: %d\n? ? ? : %d'\
%(self.confirmed,self.confirmedRelative,self.curConfirm,self.curConfirmRelative,self.died,self.diedRelative,self.cured,self.curedRelative,self.asymptomatic,self.asymptomaticRelative,self.unconfirmed,self.unconfirmedRelative,self.icu,self.icuRelative,self.overseasInput,self.overseasInputRelative,self.unOverseasInputCumulative,self.unOverseasInputNewAdd,self.icuDisable)