mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-19 15:09:37 +00:00
remove some words
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,15 +1,15 @@
|
||||
import random
|
||||
import linecache
|
||||
import sys
|
||||
from os import path
|
||||
|
||||
file_path = path.dirname(path.realpath(__file__))
|
||||
|
||||
def ctx():
|
||||
file = path.join(file_path,'toeflwords.txt')
|
||||
with open(file, encoding='utf-8') as inf:
|
||||
f = inf.readlines()
|
||||
count = len(f)
|
||||
wordnum = random.randrange(0, count, 1)
|
||||
word = linecache.getline(file, wordnum)
|
||||
import random
|
||||
import linecache
|
||||
import sys
|
||||
from os import path
|
||||
|
||||
file_path = path.dirname(path.realpath(__file__))
|
||||
|
||||
def ctx():
|
||||
file = path.join(file_path,'toeflwords.txt')
|
||||
with open(file, encoding='utf-8') as inf:
|
||||
f = inf.readlines()
|
||||
count = len(f)
|
||||
wordnum = random.randrange(0, count, 1)
|
||||
word = linecache.getline(file, wordnum)
|
||||
return {"word": word}
|
||||
Reference in New Issue
Block a user