<html>
<body>
<form>
可獲取碼列表:
<select name="liscode">
<option value="01">123456</option>
<option value="02">123457</option>
<option value="03">123458</option>
<option value="04">123459</option>
<option value="05">123460</option>
<option value="06">123461</option>
</select>
<input type="submit" value="確認獲取"/>
</form>
</body>
</html>
如何用python實現呢?
做一個py指令碼或exe給使用者實現的話大概像下面這樣:
infile = open("codelist.txt","r")
codelist = infile.readlines()
法)
outfile = open("codelist.txt","w") for code in codelist: outfile.write(code + "\n") outfile.close() print used_code
<html>
<body>
<form>
可獲取碼列表:
<select name="liscode">
<option value="01">123456</option>
<option value="02">123457</option>
<option value="03">123458</option>
<option value="04">123459</option>
<option value="05">123460</option>
<option value="06">123461</option>
</select>
<input type="submit" value="確認獲取"/>
</form>
</body>
</html>
如何用python實現呢?
做一個py指令碼或exe給使用者實現的話大概像下面這樣:
infile = open("codelist.txt","r")
codelist = infile.readlines()
法)
outfile = open("codelist.txt","w") for code in codelist: outfile.write(code + "\n") outfile.close() print used_code