print('hello, world', end='***')
print('goodbye')
print(125 - 5)
print(125 + 5)
print(125 * 5)
print(125 / 5)
print(125 // 6) # //是指整除部分
print(125 % 5) # %是求余数意思
print(125 ** 5) #求幂次方125之5次方
#int是定义x 为整数,其中input是指让使用者自订义输入数值,'输入整数'这段是开发者想要给使用者提示
x = int(input('输入整数'))
y = int(input('输入整数'))
print(x + y)
print(x - y)
print(x / (y + 5))
print(y / x)
print(y // x)
print(x ** (y + 5))
print(x % (y + 2))
print(x ** y + 5)
student_age = 18
#变量命名有多个单词连接时候用下滑线分隔,称作snake case
逻辑运算子之写法及优先顺序
熟悉input功能及print功能使用
个人运算符号实做连结(内有注解): https://github.com/doctor-to-code/hello-world/blob/main/example02.py
<<: Microsoft Azure Machine Learning - Day 1
关於货物没进到口袋这档事 回到刚才的函式,我们分为2部分,第一是如果存在,那amount的数字必须加...
T0856 Spoof Reporting Message 攻击者欺骗回传报告的内容,为了不让自己的...
刚体2D(Rigidbody 2D) 当物体运动速度远小於光速可被视为理想刚体,可以忽略型变,也就是...
0x1 API 需求 在发出建立订单 - 取得虚拟帐号的请求後,若付款完成会呼叫 BackendUR...
前言 现在我们要用我们之前学的内容, 做一个简单的 RecipeList APP。 实作 打开一个新...