impauto
Impauto
自動入力であなたの生活を楽にします
pip install impautoこのモジュールを使用する基本的な方法
from impauto import Automated
# Each argument passed will be enter as a str to the input function.
Automated ( 154 )
# use your script as normal
def syracuse ( x ):
step = 0
while x != 1 :
x = ( 3 * x + 1 ) if x % 2 else ( x // 2 )
step += 1
return step
n = int ( input ( "Enter a number: " ))
print ( syracuse ( n ))端子入力メッセージを非表示にすることもできます
from impauto import Automated
# Each argument passed will be enter as a str to the input function.
Automated ( 1 , 2 , 3 , show_message = False )デフォルトでは、値よりも多くの入力がある場合、例外が発生します。入力を無期限に繰り返すには、このコードを使用できます
from impauto import Automated
# Each argument passed will be enter as a str to the input function.
Automated ( "a" , "b" , forever = True )©2020 Copyright Edhyjox
このリポジトリは、MITライセンスの下でライセンスされています。詳細については、ライセンスを参照してください。