Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.get_version()
'3.0'
>>> django-admin.py startproject HelloWorld
  File "", line 1
    django-admin.py startproject HelloWorld
                               ^
SyntaxError: invalid syntax
>>>

跟着教程新建一个项目,使用命令django-admin.py startproject HelloWorld
结果报错了,

正确做法:
把原命令的.py去掉即可
django-admin startproject HelloWorld