本文整理汇总了Python中note.Note.returnNote方法的典型用法代码示例。如果您正苦于以下问题:Python Note.returnNote方法的具体用法?Python Note.returnNote怎么用?Python Note.returnNote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类note.Note
的用法示例。
在下文中一共展示了Note.returnNote方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Note
# 需要导入模块: from note import Note [as 别名]
# 或者: from note.Note import returnNote [as 别名]
from note import Note
a = Note()
a.setNote("Hello, this is a testing script. Looking, writing, and testing")
print("Printing Dictionary-", a.returnnDict())
print("Printing Dictionary-", a.returnNote())
a.setNote("Hello, this is a testing set script. Looking, writing, and changing")
print("Printing Dictionary-", a.returnnDict())
print("Printing Dictionary-", a.returnNote())
b = "Hello, I am string"
a.setNote(b)
print("Printing Dictionary-", a.returnnDict())
print("Printing Dictionary-", a.returnNote())
示例2: Data_rm
# 需要导入模块: from note import Note [as 别名]
# 或者: from note.Note import returnNote [as 别名]
class Data_rm(DueDate, Reminder, Note):
def __init__(self):
logging.debug('Initializing Data class')
self.DueDate = DueDate()
self.Reminder = Reminder()
self.Note = Note()
self.ID = 'Database'
self.dbDict = {
'Database':{
'DueDate':{
DueDate.returndDict()
},
'Reminder':{
Reminder.returnrDict()
},
'Note':{
Note.returnnDict()
}
}
}
# Returning Functions (Classses)
# def returnDueDate(self):
# logging.debug(('Returning Data::Duedate: ', self.DueDate))
# return self.DueDate
# def returnReminder(self):
# logging.debug(('Returning Data::Reminder: ', self.Reminder))
# return self.Reminder
# def returnNote(self):
# logging.debug(('Returning Data::Note: ', self.Note))
# return self.Note
# def returnID(self):
# logging.debug(('Returning Data::ID: ', self.ID))
# return self.ID
# # Returning Functions (Dictionaries)
# def returndDict(self):
# logging.debug(('Returning Data::dDict: ', self.DueDate.returndDict()))
# return self.DueDate.returndDict()
# def returnrDict(self):
# logging.debug(('Returning Date::rDict: ', self.Reminder.returnrDict()))
# return self.Reminder.returnrDict()
# def returnnDict(self):
# logging.debug(('Returning Date::nDict: ', self.Note.returnnNote()))
# return self.Note.returnrDict()
# Setting Individual Functions: setX(params)
# def setDueDate(self, name, date, time):
# logging(('Setting Data::DueDate with parameters: ', name, date, time))
# logging(('Previous Data::DueDate parameters: ', self.DueDate.returnName(),
# self.DueDate.returnDate(),
# self.DueDate.returnTime()))
# self.DueDate.setAll(name, date, time)
# logging(('Present Data::DueDate parameters: ', self.DueDate.returnName(),
# self.DueDate.returnDate(),
# self.DueDate.returnTime()))
# def setReminder(self, date, time):
# logging(('Setting Data::Reminder with parameters: ', date, time))
# logging(('Previous Data::Reminder parameters: ', self.Reminder.returnDate(),
# self.Reminder.returnTime()))
# self.Reminder.setAll(date, time)
# logging(('Present Data::Reminder parameters: ', self.Reminder.returnDate(),
# self.Reminder.returnTime()))
# def setNote(self, note):
# logging(('Setting Data::Note with parameters: ', note))
# logging(('Previous Data::Note parameters: ', self.Note.returnNote()))
# self.Note.setNote(note)
# logging(('Present Data::Note parameters: ', self.Note.returnNote()))
# Setting with Class: setXC(class)
def setDueDateC(self, dd):
logging(('Setting Data::DueDate with class: ', dd.returnName(),
dd.returnDate(), dd.returnTime()))
logging(('Previous Data::DueDate parameters: ', self.DueDate.returnName(),
self.DueDate.returnDate(),
self.DueDate.returnTime()))
self.DueDate.setAll(dd.returnName(), dd.returnDate(), dd.returnTime())
logging(('Presetn Data::DueDate parameters: ', self.DueDate.returnName(),
self.DueDate.returnDate(),
self.DueDate.returnTime()))
def setReminderC(self, r):
logging(('Setting Data::Reminder with class: ', r.returnDate(),
r.returnTime()))
logging(('Previous Data::Reminder parameters: ', self.Reminder.returnDate(),
self.Reminder.returnTime()))
self.Reminder.setAll(r.returnDate(), r.returnTime())
logging(('Present Data::Reminder parameters: ', self.Reminder.returnDate(),
self.Reminder.returnTime()))
def setReminderC(self, n):
logging(('Setting Data::Note with class: ', n.returnNote()))
#.........这里部分代码省略.........