[英]What is the python equivalent to $|=1 in Perl
嗨,我對Perl和CGI很新。
我正在嘗試將perl腳本轉換為python。
在腳本中提到$ | = 1 。 我理解的是它清除了緩沖區。
我正在搜索是否有任何python等同於做確切的事情。
有什么建議么??
我認為暫時不要擔心移植這條線,因為每次print后沖洗stdout可能是你移植擔憂中最少的。
print
但如果是,你有很多選擇:
flush=True
-u
0
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
sys.stdout
TextIOWrapper
我會嘗試找到其余點的一些鏈接並編輯它們。
[英]What is the python equivalent to perl “a”..“azc”
[英]What's the Perl equivalent of Python's enumerate?
[英]What is the Python equivalent of Perl's 'if exists' for hashes?
[英]What is the Python equivalent of Perl's DBI?
[英]What is Python's equivalent of “perl -V”
[英]What would be the python equivalent of this Perl if condition?
[英]What is the Python equivalent of Perl 6's comb method?
[英]Python dir equivalent in perl?
[英]Python equivalent of Perl $^BASETIME
[英]Python regex equivalent for perl
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.