作者cscscscs22 (QQQ)
看板Python
标题[问题] 程式新手
时间Mon Oct 1 23:02:48 2012
各位好
小弟在上MIT的开放式课程
他们的第一个小题目是
Enter your last name:
**Grimson
Enter your first name:
**eric
eric
Grimson
依照他们提示来到这个网站
http://en.wikibooks.org/wiki/Python_Programming/Input_and_output
小弟直接复制贴上
print raw_input('What is your name? ')
What is your name? <user input data here>
x = raw_input('What is your name?')
print ('Your name is ' + x)
然後Enter
What is your name? wayne
wayne
并没有
Your name is wayne
为什麽呢??
另外我还不知道怎麽换行
一般习惯都是按Enter换行
然後题目究竟该怎麽写呢??
小弟真的是新手拜托各位了
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 1.171.16.93
※ 编辑: cscscscs22 来自: 1.171.16.93 (10/01 23:04)
1F:→ IAMPF:有完整的码? 10/01 23:06
2F:→ cscscscs22:不懂您的意思?? 我照该网站的输入 竟然不一样的答案 10/01 23:10
3F:推 Arim:原PO可以分享一下该课程吗XD? 10/01 23:14
http://open.163.com/ocw/
中国网站 有中+英双字幕
计算机分类直接下载
※ 编辑: cscscscs22 来自: 1.171.16.93 (10/01 23:20)
4F:推 Arim:谢谢 :) 10/01 23:23