python - Problem with import curses.ascii -
I'm trying to from curses.ascii import *
on the project Diegogo, but I get : A module named _curses
, I'm using Python 2.5, any suggestions? Anyway, I only need to use the isalpha ()
function ....
You did not say which platforms you are on, but there is probably a package that will install a curved binding for you.
For example in Debian / Ubuntu, this is part of the default python install
If you have created Python on your own, then you are probably disappearing in libraries - dev
If you are on windows then you can check - curses are on windows, but there is a module
Edit: Since OP is just isalpha
Using strings of its own iLFA () method
& gt; & Gt; & Gt; "Hello" .isalpha () true & gt; & Gt; & Gt; "world!". Alpha (false)
works only on one letter with a curse
gt; & Gt; Import from Curses.ascii isalpha & gt; & Gt; & Gt; All ("hello" is the iSlafa (x)) for X in true & gt; & Gt; & Gt; All ("EL in the world" for IL) (X) wrong
Comments
Post a Comment