Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有“支票”吗?
例如...我会有一个字典,其中包含要发送到 POST 的参数。
params = {'text':'how are you?', 'subject':'hi'}
那么我会
opener.open('theurl',urllib.urlencode(params))
问题是......这些参数适用于文本框,因为我只是将值放在那里。单选按钮怎么样?我如何表示哪个是“已检查”?
单选按钮也有值
<input type="radio" name="music" value="Rock" checked="checked"> Rock<br> <input type="radio" name="music" value="Pop"> Pop<br> <input type="radio" name="music" value="Metal"> Metal<br>
对于这种情况 {"music":"Rock"} in params