Math ShU
97 subscribers
401 photos
15 videos
124 files
111 links
📌
بستری برای اشتراک گذاری اطلاعیه ها ورخدادهای مرتبط با دانشکده علوم دانشگاه شیراز
وسایر مطالب مفید
.
(این کانال مستقل از دانشگاه میباشد)
.
#دانشکده_خود_را_ارتقا_دهیم.

برای اشتراک پیام های خود با آیدی

@nihilof

در‌ تماس باشید.
Download Telegram
Forwarded from Math ShU (nihiL)
#python

🔴 توصیف توابعِ کاربردی پایتون🔴

📌int(x [,base])

Converts x to an integer. base specifies the base if x is a string.

📌long(x [,base] )

Converts x to a long integer. base specifies the base if x is a string.

📌float(x)

Converts x to a floating-point number.

📌complex(real [,imag])

Creates a complex number.

📌str(x)

Converts object x to a string representation.

📌🌟repr(x)

Converts object x to an expression string.

📌eval(str)

Evaluates a string and returns an object.

📌tuple(s)

Converts s to a tuple.

📌list(s)

Converts s to a list.

📌set(s)

Converts s to a set.

📌dict(d)

Creates a dictionary. d must be a sequence of (key,value) tuples.

📌frozenset(s)

Converts s to a frozen set.

📌chr(x)

Converts an integer to a character.

📌unichr(x)

Converts an integer to a Unicode character.

📌ord(x)

Converts a single character to its integer value.

📌hex(x)

Converts an integer to a hexadecimal string.

📌oct(x)

Converts an integer to an octal string.

@Math_ShU
در #پایتون چطور #کاراکتر_های_غیر_حروف_الفبایی را از یک لیست حذف کنیم؟
#حذفـکاراکتر
import re

str = "123456790abcdefABCDEF!@#$%^&*()_+<>?,./"
result = re.sub(r'[^a-zA-Z]', "", str)
print (result)


(توجه اگر از پایتون ۲ استفاده میکنید دستور print نیازی به پرانتز ندارد )
@Math_ShU
#python
python2python3.pdf
668.2 KB
برخی تفاوت ها در پایتون 2 و 3
#python
@Math_ShU
Forwarded from DLeX: AI Python (🎈 Amir Arman 🎈)
🎗 بیش از 100 تمرین پایتون
#Python #practice #challeng

🔗 https://bit.ly/1C4sgY5

❇️ @Ai_Python
#پیشنهاد #پایتون #Python

بچه هایی که مبانی پاس کردید و تابستون میخواید پایتون کد نویسی کنید و بیشتر کار کنید .
میتونید کار با ماژول های
numpy و matplotlib و Ipython
رو یاد بگیرید .


اینها برای محاسبات ریاضی و رسم نمودار خیلی کمک میکنند .
دوتاشون رو میدونم دقیقا برای این منظور ساخته شده اند

و پیشنهاد میشه که در محیط jupyter notebook یا jupyder lab و spyder
کد نویسی کنید ‌.

(برای نصب کافیه نرم افزاری به اسم
Anacoda
رو دانلود کنید )

(در pycharm هم میشه ! ولی اینا سبک ترو جدید تر هستن )

مخصوصا توی نمودار و.. برای نصب کردن یک ماژول اذیت نخواهید شد .


این سه تا ماژولی که نام بردم بعدا هم در درس هایی چون آنالیز عددی و مبانی ماتریس و جبر خطی و ....
کلی کمک تون میکنند .


@Math_ShU