Найти - Пользователи
Полная версия: sys.stdin.read() AttributeError: read
Начало » Python для новичков » sys.stdin.read() AttributeError: read
1
nokados
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import sys
>>> a=sys.stdin.read()
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    a=sys.stdin.read()
AttributeError: read
>>>

Почему?? Что не так??
FishHook
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> a=sys.stdin.read()
gbfgb
fgbdfbdf
>>> 
nokados
не помогло
Budulianin
nokados
не помогло

в консоли пиши, а не в IDLE
nokados
Budulianin
в консоли пиши, а не в IDLE
да так работает,
через файлы script.py тоже. А почему через IDLE не пашет?
Budulianin
nokados
А почему через IDLE не пашет?
Потому что вот

дружить надо с google и yandex
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB