name = input("what's your name ")

print("hello,word")

此程序先等待用户录入name 再执行第二行输出语句

 

 

注释:

 

#后面跟要注释的内容

 

   1.在难理解和重要的地方加注释

    2. 可以中英文注释

 

posted on 2018-04-10 20:04  ladydd  阅读(97)  评论(0)    收藏  举报