?
python : 3.7.0
OS : Ubuntu 18.04.1 LTS
IDE : PyCharm 2018.2.4
conda : 4.5.11
type setting : Markdown
?
code
"""
@Author : 行初心
@Date : 18-10-1
@Blog : www.cnblogs.com/xingchuxin
@GitHub : github.com/GratefulHeartCoder
"""
from tkinter import *
def main():
root = Tk()
Button(root, text=‘0.0‘).grid(row=0, column=0)
Button(root, text=‘0.1‘).grid(row=0, column=1)
Button(root, text=‘1.0‘).grid(row=1, column=0)
Button(root, text=‘1.1‘).grid(row=1, column=1)
mainloop()
if __name__ == ‘__main__‘:
main()
?
result