python50个练习题(第一期答案)

第一练答案

第一题:

print("Twinkle, twinkle, little star, \n\tHow I wonder what you are! \n\t\tUp above the world so high, \n\t\tLike a diamond in the sky. \nTwinkle, twinkle, little star, \n\tHow I wonder what you are!")

第二题:

  • cmd输入:python --version 回车
  • 通过打印输出:
import platform
print(platform.python_version()

猜你喜欢

转载自blog.csdn.net/weixin_46211269/article/details/123771755
今日推荐