推荐学习书目
› 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
guoguodun
V2EX  ›  Python

Python 新手问个问题,关于变量等于 Ture

  •  
  •   guoguodun · Dec 7, 2017 · 2477 views
    This topic created in 3221 days ago, the information mentioned may be changed or developed.

    a = Ture print(a)

    Traceback (most recent call last): File "C:/Users/lenovo/AppData/Local/Programs/Python/Python37-32/asfasfsad.py", line 1, in <module> a = Ture NameError: name 'Ture' is not defined

    为什么显示 Ture is not defined 啊?我的是 python 3 自带的 IDLE

    3 replies  •  2017-12-14 10:51:31 +08:00
    mkeith
        1
    mkeith  
       Dec 7, 2017
    True
    lieh222
        2
    lieh222  
       Dec 8, 2017
    想象不到楼主看到答案的表情
    xiongweixbox
        3
    xiongweixbox  
       Dec 14, 2017
    楼上的你们哈哈哈。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2324 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:30 · PVG 17:30 · LAX 02:30 · JFK 05:30
    ♥ Do have faith in what you're doing.