Media is too big
VIEW IN TELEGRAM
Cheat Sheet
r rt rb
w wt wb
a at ab
print(os.linesep.encode())
file = open(file="file.txt",
mode="wt", encoding="utf-8")
file.write("Hello, World!\n")
file.close()
with open(file="file.txt",
mode="wt", encoding="utf-8") as file:
file_name vs FILE_NAME
os.path.exists(path=FILE_NAME)
os.path.isfile(path=FILE_NAME)
quit()
exit()
Source Code
https://github.com/Dariush-Tasdighi/Python_Projects
#Movie #SourceCode #Python #General #EthicalHacking #Cryptography #File #Directory
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7👍2
Media is too big
VIEW IN TELEGRAM
Cheat Sheet
- آدرسدهی نسبی و مطلق (فیزیکی)
- تفاوت بین آدرسها در ویندوز و لینوکس و مک
os.name
os.getcwd()
os.path.exists(path=PATH) # First
os.path.isdir(s=PATH) # Second
os.path.isfile(path=PATH) # Second
Source Code
https://github.com/Dariush-Tasdighi/Python_Projects
#Movie #SourceCode #Python #General #EthicalHacking #Cryptography #File #Directory
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤9👍2
Media is too big
VIEW IN TELEGRAM
Cheat Sheet
- Introduction to Unit Testing
- Introduction to Main Guard
- Function: get_path_parts()
- Function: test_of_get_path_parts()
some_string = some_string.strip()
location, tail =
os.path.split(p=path)
items =
os.path.splitext(p=tail)
file_name = items[0]
file_extension = items[1]
Source Code
https://github.com/Dariush-Tasdighi/Python_Projects
#Movie #SourceCode #Python #General #EthicalHacking #Cryptography #File #Directory
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤10👍5
Media is too big
VIEW IN TELEGRAM
Cheat Sheet
- آموزش ایده نوشتن (آنتی) ویروس
- آموزش ایده نوشتن (آنتی) باجافزار
Function: get_files(path)
Function: get_all_files(path)
os.path.exists
os.path.isdir(path)
os.path.isfile(path)
os.walk(path)
os.listdir(path)
os.path.join(path, file)
items.append(item)
items.extend(another_items)
Source Code
https://github.com/Dariush-Tasdighi/Python_Projects
#Movie #SourceCode #Python #General #EthicalHacking #Cryptography #File #Directory
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤11👍5