#آموزش ۱۳
🌟 برخی از تبدیلات کاربردی در پایتون
📌int("15") → 15
📌int("3f",16) → 63
📌int(15.56) → 15
📌float("-11.24e8") → -1124000000.0
📌round(15.56,1)→ 15.6
📌repr(x)→ "…"literal representation string of x
📌bytes([72,9,64]) → b'H\t@'
📌list("abc") → ['a','b','c']
📌dict([(3,"three"),(1,"one")]) → {1:'one',3:'three'}
📌set(["one","two"]) → {'one','two'}
📌 ':'.join(['toto','12','pswd']) → 'toto:12:pswd'
📌"words with spaces".split() → ['words','with','spaces']
📌"1,4,8,2".split(",") → ['1','4','8','2']
📌[int(x) for x in ('1','29','-3')] → [1,29,-3]
🆔 @raspberry_python
🌟 برخی از تبدیلات کاربردی در پایتون
📌int("15") → 15
📌int("3f",16) → 63
📌int(15.56) → 15
📌float("-11.24e8") → -1124000000.0
📌round(15.56,1)→ 15.6
📌repr(x)→ "…"literal representation string of x
📌bytes([72,9,64]) → b'H\t@'
📌list("abc") → ['a','b','c']
📌dict([(3,"three"),(1,"one")]) → {1:'one',3:'three'}
📌set(["one","two"]) → {'one','two'}
📌 ':'.join(['toto','12','pswd']) → 'toto:12:pswd'
📌"words with spaces".split() → ['words','with','spaces']
📌"1,4,8,2".split(",") → ['1','4','8','2']
📌[int(x) for x in ('1','29','-3')] → [1,29,-3]
🆔 @raspberry_python
با micropython pyboard شما به یک سیستم عامل پایتون سطح پایین دسترسی دارید .بردی از لحاظ الکترونیکی قدرتمند و مورد استفاده در پروژه های مختلف الکترونیکی.
@raspberry_python
@raspberry_python
rfid.rar
17.9 MB
مقاله و کتاب در ارتباط با rfid
@raspberry_python
@raspberry_python