如何将输入与TKINTER中的条目分为单个字符?
我正在努力在TKINTER中制作一个密码程序,需要将输入到分开字符的条目中分开。
例如,如果用户输入“猴子”一词, 它将被放入这样的阵列 seperatedword = [“ m”,“ o”,“ n”,“ k”,“ e”,“ y”]
我该怎么做?
I am working on making a ciphering program in Tkinter and need to seperate the words inputted into an Entry into seperate characters.
For example, if the user inputted the word "monkey",
it would be put into an array like this
seperatedWord = ["m","o","n","k","e","y"]
How would I go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如ACW1668所评论的那样。
您可以 typecast> typecast 字符串作为
列表代码:
as commented by acw1668.
you can typecast a string as list
try this code: