Fetch the repository succeeded.
This action will force synchronization from jack2583/PythonExamples, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
patch-1
import os #The OS module in python provides functions for interacting with the operating system
patch-3
# function to check if 'binod' is present in the file.
def checkBinod(file):
=======
def checkBinod(file): #this function will check there is any 'Binod' text in file or not
with open(file, "r") as f: #we are opening file in read mode and using 'with' so need to take care of close()
=======
import time
import os
#Importing our Bindoer
print("To Kaise Hai Ap Log!")
time.sleep(1)
print("Chaliye Binod Karte Hai!")
def checkBinod(file):#Trying to find Binod In File Insted Of Manohar Ka Kotha
master
with open(file, "r") as f:
master
fileContent = f.read()
if 'binod' in fileContent.lower():
print(
f'**************Congratulations Binod found in {f}********************')
return True
else:
return False
if __name__ == '__main__':
print("************binod Detector********************")
dir_contents = os.listdir()
for item in dir_contents:
if item.endswith('txt'):
ans = checkBinod(item)
if(ans is False):
print('Binod not found Try Looking In Manohar Ka Kotha!!')
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。