使用 tkinter 将我的文本移动到任何位置
Using tkinter move my txt around to any locaiton
从 tkinter 插入的典型用法是:
text1.insert(5.5,'*')
我想使用:
for x in 10:
text1.insert(5.x,'*')
但语法无效。
索引只是line.character格式的字符串,所以可以使用字符串格式:
for x in range(10):
text1.insert(f"5.{x}", "*")
从 tkinter 插入的典型用法是:
text1.insert(5.5,'*')
我想使用:
for x in 10:
text1.insert(5.x,'*')
但语法无效。
索引只是line.character格式的字符串,所以可以使用字符串格式:
for x in range(10):
text1.insert(f"5.{x}", "*")