V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Selenium39
V2EX  ›  Python

哪里能下载越南语 cp1258 的编码集

  •  
  •   Selenium39 · 2021-04-06 11:00:10 +08:00 · 2075 次点击
    这是一个创建于 1106 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2021-04-07 09:08:22 +08:00
    koebehshian
        1
    koebehshian  
       2021-04-06 12:19:07 +08:00   ❤️ 2
    koebehshian
        2
    koebehshian  
       2021-04-06 12:26:27 +08:00
    我刚下下来看了下,越南语的在 lib/cp1258.h 头文件中
    dll30
        3
    dll30  
       2021-04-06 18:40:15 +08:00
    奇怪的需求增加了Σ( ° △ °|||)︴
    Selenium39
        4
    Selenium39  
    OP
       2021-04-07 09:08:22 +08:00   ❤️ 1
    http://code.cside.com/3rdpage/us/windows/windows-1258.html
    这里能够看到所有编码.

    import requests
    from bs4 import BeautifulSoup

    url = "http://code.cside.com/3rdpage/us/windows/windows-1258.html"
    response = requests.request(method='get', url=url)
    html_doc = response.text
    soup = BeautifulSoup(html_doc, 'html.parser')
    for input in soup.find_all('input', class_='ix'):
    with open("label_viet.txt", "a") as f:
    f.writelines(input.get('value')+"\n")
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1053 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:38 · PVG 06:38 · LAX 15:38 · JFK 18:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.