该选项的错误比较明显,因为选项中没有指明函数 $f(x)$ 和函数 $g(x)$ 的极限存在,缺少了研究极限问题的大前提,那么,接下来的所有说明和结论都是没有根据也没有意义的。不过,如果 C 选项像 B 选项一样指明函数 $f(x)$ 和函数 $g(x)$ 的极限是存在的,那么该选项的表述就是正确的,原因在 B 选项中已经分析过。
图 2. By U.S. Air Force photo by Bobbi Zapka – http://www.af.mil/shared/media/photodb/photos/070301-F-9126Z-229.jpg, Public Domain, https://commons.wikimedia.org/w/index.php?curid=6711631
In addition, he replaced his account profile picture with a black picture. Since he posted that tweet (say he will delete his Twitter account), he hasn’t updated anything, including replying to messages.
Maybe it’s true, maybe it’s just a joke. Who knows?
a=2
with open(('1.md'), 'r',encoding='UTF-8') as f:
for line in f:
for ch in line:
if ch=='$':
if a % 2 == 0:
ch='【latex】'
a = a + 1
elif a % 2 != 0:
ch = '【/latex】'
a = a + 1
print (ch,end='')
有注释版代码:
a=2
with open(('1.md'), 'r',encoding='UTF-8') as f:
# 读取 1.md 文件中的内容,可以读取中文。
for line in f:
# 遍历一行
for ch in line:
# 遍历一行中的每一个字符
if ch=='$':
if a % 2 == 0:
# 如果 a 为偶数,把 $ 换成 【latex】
ch='【latex】'
a = a + 1
# 操作完成,改变 a 的值
elif a % 2 != 0:
# 如果 a 为奇数,把 $ 换成 【/latex】
ch = '【/latex】'
a = a + 1
# 操作完成,改变 a 的值
print (ch,end='')
# 输出本行的操作结果(end='' 保证了输出完一整行后再换行)