用退出代码1完成进程 是啥意思

qq_ngueq1sk 基本的正则表达式 最后由 极客学院_吕布 于2018年10月30日回复

  • 1 回答
  • 879 浏览

F:python.exe F:/jikexueyuan/re.py

Traceback (most recent call last):

  File "F:libsite.py", line 539, in <module>

    main()

  File "F:libsite.py", line 521, in main

    known_paths = addusersitepackages(known_paths)

  File "F:libsite.py", line 266, in addusersitepackages

    user_site = getusersitepackages()

  File "F:libsite.py", line 241, in getusersitepackages

    user_base = getuserbase() # this will also set USER_BASE

  File "F:libsite.py", line 231, in getuserbase

    USER_BASE = get_config_var('userbase')

  File "F:libsysconfig.py", line 525, in get_config_var

    return get_config_vars().get(name)

  File "F:libsysconfig.py", line 458, in get_config_vars

    import re

  File "F:jikexueyuanre.py", line 8, in <module>

    b=re.findall('x.',a)

AttributeError: 'module' object has no attribute 'findall'

Process finished with exit code 1

  • 极客学院_吕布 2018年10月30日 回答 #1楼
  • 要看上面一句,module这个对象没有属性findall,你看看findall是不是拼写错了

  • 0 评论