“Infinity Python” Kode Jawaban

Nilai tak terbatas Python

test = float("inf")

In Python 3.5, you can do:

import math
test = math.inf
Ugliest Unicorn

Infinity di Python

# Defining a positive infinite integer 
positive_infnity = float('inf') 
print('Positive Infinity: ', positive_infnity) 
  
# Defining a negative infinite integer 
negative_infnity = float('-inf') 
print('Negative Infinity: ', negative_infnity)
Aggressive Addax

Infinity Python

positive_infinity = float('inf') 
negative_infinity = float('-inf') 
Successful Sandpiper

Python menetapkan infinity negatif

# Define Negative infinity number
ntive_inf = float('-inf')
print('Negative Infinity: ',ntive_inf)
Dentedghost

Infinity Python

math.inf
Hungry Hamster

Infinty in Python

not possible in a numerical value sorry 
Albert Einstein

Jawaban yang mirip dengan “Infinity Python”

Pertanyaan yang mirip dengan “Infinity Python”

Lebih banyak jawaban terkait untuk “Infinity Python” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya