import pywikibot
site = pywikibot.Site('zh', 'wikisource')
page = pywikibot.Page(site, 'wikisource:沙盒')
 
True
 
 
Page [[wikisource:zh:Wikisource:沙盒]] saved
 
  File "<ipython-input-14-ac629dd02de8>", line 1
    replace.py mytest123 mytest456 -search:mytest123
                       ^
SyntaxError: invalid syntax