تا یک تخصص جهانی داشته باشی!
◀️تو یه دورهی آنلاین 6 ماهه می تونی از صفر دیتا ساینس رو یاد بگیری
◀️در آخر به شرکتها معرفیت میکنیم تا استخدام بشی
➕تخفیف ویژه برای ۱۵ نفر اول
ثبت نام اولیه👇👇
https://dnkr.ir/6KGgJ
https://dnkr.ir/6KGgJ
چالش پایتون 在 Telegram 上分享的最新内容
>>>x=7
>>>x=3
>>>x
3
>>>print(float("10")*5)
50.0
>>>print(float("10"*5))
1010101010.0
1010101010.0
>>>y = input()
the number = 5
>>>print (y+10)
error
چون نباید بنویسیم (y+10) print باید به صورت زیر عمل کنیم:
>>>print(int(y)+10)
15
>>> foo = "a string"
>>> foo
'a string'
>>> bar
NameError: name 'bar' is not defined
>>> del foo
>>> foo
NameError: name 'foo' is not defined
❗️
>>> foo = input("Enter a number: ")
Enter a number: 7
>>> print(foo)
7
>>> this_is_a_normal_name = 7
>>> 123abc = 7
SyntaxError: invalid syntax
>>> spaces are not allowed
SyntaxError: invalid syntax
>>> x = 123.456
>>> print(x)
123.456
>>> x = “this is a string”
>>> print (x + “!”)
this is a string!
WNR1403
»> import numpy as np
»> a9 = np.array([[1,1],[3,3]],dtype = complex)
»> print a9
[[ 1.+0.j 1.+0.j]
[ 3.+0.j 3.+0.j]]
»> a9.size
4
»> a9.ndim
2
»> a2.shape
(2, 4)
»> a3.shape
(4,)
»> a2.dtype
dtype('int32')
»> a6 = np.array([[1.1,2.1,3.2],[2.2,2.2,3.5]])
»> a6.dtype
dtype('float64')
»> a2.itemsize
4
»> a6.itemsize
8