Skip to content

kaichingchang/Python-Variable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Variable

此專案示範 Python 的變數。

於終端機執行 big.py  ,結果如下

$ python3 big.py
1024
1267650600228229401496703205376
10715086071862673209484250490600018105614048117055336074437503883703510511249361224931983788156958581275946729175531468251871452856923140435984577574698574803934567774824230985421074605062371141877954182153046474983581941267398767559165543946077062914571196477686542167660429831652624386837205668069376
$

於終端機執行 type1.py  ,結果如下

$ python3 type1.py
0
0.0
0j
False
0
[0]
{0}
{0: 0}
$

於終端機執行 type2.py  ,結果如下

$ python3 type2.py
0
0.0
0j
False

[]
set()
{}
$

於終端機執行 type3.py  ,結果如下

$ python3 type3.py
1
50.0
(10+0j)
False
[123]
['1', '2', '3']
{'1', '3', '2'}
{1: 2, 2: 1}
$

於終端機執行 type4.py  ,結果如下

$ python3 type4.py
<class 'int'>
<class 'float'>
<class 'complex'>
<class 'bool'>
<class 'str'>
<class 'list'>
<class 'set'>
<class 'dict'>
$

Releases

No releases published

Packages

No packages published

Languages