喜欢
Enter = easygui.enterbox
print(Enter.text)
我不知道该怎么做。什么字符串名称形成 easygui.enterbox?
最佳答案
enterbox
是一个函数,引用自tutorial :
enterbox(msg='Enter something.', title=' ', default='', strip=True)
Show a box in which a user can enter some text. You may optionally specify some default text, which will appear in the enterbox when it is displayed.
Returns the text that the user entered, or None if he cancels the operation.
例子:
import easygui
value = easygui.enterbox()
print(value)
希望对您有所帮助。
关于python - 如何从 easygui.enterbox 收集字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22188128/