一键注释
贴段Django代码
from django.urls import reverse
def my_view(request):
url = reverse('index')
return redirect(url)
贴段Vue代码
<template>
<div id="app">
<input v-model.lazy="msg" type="text" name="" >
<p>{{ msg }}</p>
</div>
</template>
<script>
export default {
name: 'App',
data(){
return {
msg: "hello",
}
},
components: {
},
methods: {
}
}
</script>
<style lang="css">
</style>
贴段Python代码
class Person:
name = 'SteveRocket'
age = 20
p = Person()
name = getattr(p, 'name')
age = getattr(p, 'age')
print(name, age) # 输出结果是SteveRocket 20