Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44633
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <l.selmi@icloud.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'error:': 0.07; 'subject:help': 0.08; 'received:192.168.1.101': 0.09; 'sfxlen:2': 0.11; 'python': 0.11; 'wrote': 0.14; '"python",': 0.16; "'/'": 0.16; 'syntaxerror:': 0.16; 'community,': 0.19; 'import': 0.22; 'to:name:python-list@python.org': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'lines': 0.31; 'file': 0.32; 'thanks!': 0.32; '(most': 0.33; 'skip:d 20': 0.34; 'charset:us-ascii': 0.36; 'two': 0.37; 'received:17': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'skip:n 10': 0.64; 'dear': 0.65; 'invalid': 0.68 |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-05-02_06:2013-05-02, 2013-05-02, 1970-01-01 signatures=0 |
| X-Proofpoint-Spam-Details | rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=18 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1302030000 definitions=main-1305020106 |
| From | leonardo selmi <l.selmi@icloud.com> |
| Content-type | multipart/alternative; boundary="Apple-Mail=_FA052249-B20F-4A78-AFB9-E6379C59C71D" |
| Subject | help to code... |
| Date | Thu, 02 May 2013 15:50:58 +0200 |
| To | "python-list@python.org" <python-list@python.org> |
| MIME-version | 1.0 (Mac OS X Mail 6.2 \(1499\)) |
| X-Mailer | Apple Mail (2.1499) |
| Cc | "help@python.org" <help@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1245.1367506274.3114.python-list@python.org> (permalink) |
| Lines | 126 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1367506274 news.xs4all.nl 15921 [2001:888:2000:d::a6]:38292 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:44633 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
dear python community,
i wrote the following program:
from datetime import datetime
now = datetime.now()
current_month = now.month
current_day = now.day
current_year = now.year
current_hour = now.hour
current_minute = now.minute
current_second = now.second
print str(current_month) + '/' + str(current_day) + '/' + str(current_year) +' '+
print str(current_hour) + str(current_minute) + str(current_second)
and i got this error:
Traceback (most recent call last):
File "runner.py", line 125, in compilecode
File "python", line 9
print str(current_month) + '/' + str(current_day) + '/' + str(current_year) +' '+
^
SyntaxError: invalid syntax
how can i write the last two lines correctly?
thanks!
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
help to code... leonardo selmi <l.selmi@icloud.com> - 2013-05-02 15:50 +0200
csiph-web