2024-09-24 08:37:33 发布
网友
我想有一个已经为用户预先填充的输入,这样他们就不需要输入http://. 我试过"prefilled=http://",但没有成功
"prefilled=http://"
url = input("Enter a URL address starting with http:// ")
向input函数添加提示不会将其添加到字符串中。保存后必须添加
input
url = input("Enter a URL address starting with http:// ") if not url.startswith("http://"): url = "http://" + url
如何进行后处理来添加http(s)://如果它丢失了呢
向
input
函数添加提示不会将其添加到字符串中。保存后必须添加如何进行后处理来添加http(s)://如果它丢失了呢
相关问题 更多 >
编程相关推荐