mình đang học cuốn “Learn Python The Hard Ways” cho mình hỏi: “4 dòng đầu của đoạn code này làm gì dậy?”:
1.from sys import argv
2.
3.script, user_name = argv
4.prompt = '> '
5.
6.print "Hi %s, I'm the %s script." % (user_name, script)
7.print "I'd like to ask you a few questions."
8.print "Do you like me %s?" % user_name
9.likes = raw_input(prompt)
10.
11.print "Where do you live %s?" % user_name
12.lives = raw_input(prompt)
13.
14.print "What kind of computer do you have?"
15.computer = raw_input(prompt).
Ai trả lời giúp mình dới! Cảm ơn
)
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?