本文整理汇总了Python中Main.check_Message_Contents方法的典型用法代码示例。如果您正苦于以下问题:Python Main.check_Message_Contents方法的具体用法?Python Main.check_Message_Contents怎么用?Python Main.check_Message_Contents使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Main
的用法示例。
在下文中一共展示了Main.check_Message_Contents方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: general
# 需要导入模块: import Main [as 别名]
# 或者: from Main import check_Message_Contents [as 别名]
def general():
for message in file_read:
if message.startswith("#"):
pass
else:
try:
Main.check_Message_Contents(message)
time.sleep(1)
Main.Word_based_string(message)
time.sleep(1)
Main.Unusual_charecter_codes(message)
time.sleep(1)
except Exception as e:
print(e)
input(" ")
示例2: open
# 需要导入模块: import Main [as 别名]
# 或者: from Main import check_Message_Contents [as 别名]
"""
This is an attempt at testing the different functions and modules inside my project.
This project uses the
big list of naughty strings project found at
https://github.com/minimaxir/big-list-of-naughty-strings
"""
import Main
file = open("blns.txt", 'r')
file_read = file.read()
for message in file_read:
if message.startswith("#"):
pass
else:
try:
Main.check_Message_Contents(message)
Main.Word_based_string(message)
Main.Unusual_charecter_codes(message)
except Exception as e:
print(e)
input("")