##第一步say hello
print("hello, world")
##输入x y,输出乘积
x, y = input().split(",")
x=int(x)
y=int(y)
print(f"the product of {x} and {y} is: {x*y}")
#####输出多行结果
print("""
@@@@@@@@@@@@&!ii@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@vvvnnnnnnnn8@@@@@@@@@@@@@@@@@@@!ii@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6zvvvvvnnnnnnnooon@@@@
""")
####The Zen of Python
import this
#######输入浮点数,输出其向下取整Math Floor
x=float(input())
import math # 使用库前先导入 Python 内置数学库 math 为例
print(math.floor(x))
python 基础Day1HW
于 2024-04-16 16:36:14 首次发布
本文展示了Python的基本编程示例,包括打印hello,world,接收用户输入计算乘积,以及使用math库进行浮点数向下取整。同时提到了Python编程中的TheZenofPython理念。
摘要由CSDN通过智能技术生成