अगर कुछ गलत हो रहा है, तो आप हमेशा मदद के लिए कॉल करने के लिए कोशिश कर सकते हैं:
>>> help(print)
Help on built-in function print in module builtins:
print(...)
print(value, ..., sep=' ', end='\n', file=sys.stdout)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
sep: string inserted between values, default a space.
end: string appended after the last value, default a newline.
और वहाँ आपको लगता है कि print
बात की वाक्य रचना था, संभव है कि हास्यास्पद है print(something)
है, कि अजगर में 2, तो आप सिर्फ एक त्रुटि संदेश मिलता है:
>>> help(print)
SyntaxError: invalid syntax
क्योंकि यह अजगर < 3 में, print
समारोह एक समारोह नहीं था, लेकिन एक कीवर्ड (जैसे उदा। for
या or
)
प्रिंट प्रिंट पर पायथन वाक्यविन्यास त्रुटि देखें [http://stackoverflow.com/questions/826948/python-syntax-error-on-print)। –
पायथन 2.7 इंस्टॉल करें (या प्रलेखन पढ़ें) –