📜  python如何制作用户输入功能 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:25.498000             🧑  作者: Mango

代码示例1
lis = ["log('", "')"]
x = input()
# This allows you to type: log('ANY') and it will detect whats inside of the quotes and it will print into the console "ANY"
for i in lis:
    if i in x:
        if i == lis[0]:
            y = x.split("'")
            print(y[1])