![](/img/trans.png)
[英]I am unable to run any command or file of python - there is no output in terminal
[英]I am unable to get any sort of output
這是我的 python 代碼: 我最后得到的只有 output 是“真”為什么我沒有收到其他人的 output? 請幫忙。 我在 visual studio code 上使用 jupyter notebook。 Kernel:Python 3.9 64 位
# RELATIONAL OPERATORS
num1 = 10
num2 = 0
num3 = 10
str1 = "good"
str2 = "life"
# Equals to
num1 == num2
str1 == str2
# Not equal to
num1 != num2
str1 != str2
num1 != num3
# Greater Than
num1 > num2
str1 > str2
# Less Than
num1 < num3
str2 < str1
# Greater than or equal to
num1 >= num2
num2 >= num3
str1 >= str2
#Less then or equal to
num1 <= num2
num2 <= num3
str1 <= str2
您必須將每個語句包裝在 print() 中
num1 = 10
num2 = 0
num3 = 10
str1 = "good"
str2 = "life"
print(num1 == num2)
print(str1 == str2)
# so on and so forth
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.