python实例 输出你好

#打开新窗口,输入:

#! /usr/bin/python
# -*- coding: utf8 -*- 


s1=input("Input your name:")
print("你好,%s" % s1)

'''
知识点:

    * input("某字符串")函数:显示"某字符串",并等待用户输入.
    * print()函数:如何打印.
    * 如何应用中文
    * 如何用多行注释
'''    

原文地址:https://www.cnblogs.com/fanweisheng/p/11243831.html