Year = input("year of birth:" )
Month = input("month of birth:" )
Day = input("day of birth:" )
Date_of_Birth = (str(Day) + "/" + str(Month) + "/" + str(Year))
print('Your Date of Birth is ' + Date_of_Birth)
d = date.today()
y = d.year
age = y - int(Year)
print('Your age is ' + str(age))
if ((int(Month)==12 and int(Day) >= 22)or(int(Month)==1 and int(Day)= 20)or(int(Month)==2 and int(Day)= 18)or(int(Month)==3 and int(Day)= 20)or(int(Month)==4 and int(Day)= 20)or(int(Month)==5 and int(Day)= 21)or(int(Month)==6 and int(Day)= 21)or(int(Month)==7 and int(Day)= 23)or(int(Month)==8 and int(Day)= 23)or(int(Month)==9 and int(Day)= 23)or(int(Month)==10 and int(Day)= 23)or(int(Month)==11 and int(Day)= 22)or(int(Month)==12 and int(Day)
Подробнее здесь: [url]https://stackoverflow.com/questions/27285725/zodiac-calculator-2-7-6-will-not-calculate-sign-line-error-date-not-defined-ne[/url]
[code]Year = input("year of birth:" ) Month = input("month of birth:" ) Day = input("day of birth:" ) Date_of_Birth = (str(Day) + "/" + str(Month) + "/" + str(Year)) print('Your Date of Birth is ' + Date_of_Birth) d = date.today() y = d.year age = y - int(Year) print('Your age is ' + str(age))
if ((int(Month)==12 and int(Day) >= 22)or(int(Month)==1 and int(Day)= 20)or(int(Month)==2 and int(Day)= 18)or(int(Month)==3 and int(Day)= 20)or(int(Month)==4 and int(Day)= 20)or(int(Month)==5 and int(Day)= 21)or(int(Month)==6 and int(Day)= 21)or(int(Month)==7 and int(Day)= 23)or(int(Month)==8 and int(Day)= 23)or(int(Month)==9 and int(Day)= 23)or(int(Month)==10 and int(Day)= 23)or(int(Month)==11 and int(Day)= 22)or(int(Month)==12 and int(Day)
Попытка установить плоскость нормальной к вектору 3D -точек,
со следующим кодом
typedef Eigen::MatrixX3f mat3f;
typedef Eigen::Map map3f;
int npts = points.size();
map3f matA((float*)points.data(), npts, 3);
Eigen::MatrixX3f matB =...
До сих пор мой код работал (он создавал действительный график), но теперь я хотел добавить еще какие-то вещи, и он говорит, что переменная age не определена?
набор данных
by_regions = akims.loc[~akims.region.isin( )].groupby('region')...
Я мигрировал код SCSS из предыдущего правила @Import в правило @Forward и @USE, и я столкнулся с ошибкой. И, выполняя конверсию, я сталкиваюсь с проблемой, которая выплевывает некоторую ошибку. Ошибка можно увидеть ниже после окончания кода.
В этом...