社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Python

这里的菜鸟。。。需要Python代码总结方面的帮助吗

Grade-a-j • 3 年前 • 1285 次点击  

“你好,[名字]!”或者“你好!” 根据输入

def say_hello(name):
    name = "Hello there!"

    assert name != "Hello there!"
    # You can print to STDOUT for debugging like you normally would
    print(name)

    # but you need to return the value in order to complete the challenge  
    return "" # TODO: return the correct value

我之前已经完成了类似的练习测试,但我只是在这里画一个空白。 我们将非常感谢您对正确代码的任何帮助,以及您是如何获得这些代码的。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/133605
文章 [ 2 ]  |  最新文章 3 年前