def sentenceData():
if CheckVar1.get():
text.insert(END,"我喜欢")
if CheckVar2.get():
text.insert(END,"学习")
if CheckVar3.get()==1:
text.insert(END,"python","tag_1")
elif CheckVar3.get()==2:
text.insert(END,"GUI","tag_1")
def clearData():
text.delete(0.0,END)
ckb1=Checkbutton(root,text="学习",variable = CheckVar2)
ckb1.grid(row=1,column=1,rowspan=2)