gpt4 book ai didi

python - 如何从 easygui.enterbox 收集字符串

转载 作者:行者123 更新时间:2023-11-28 17:42:43 24 4
gpt4 key购买 nike

喜欢

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com